Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ee627190
Commit
ee627190
authored
Sep 11, 2013
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if module created from description is None before looking for its child descriptors
parent
7ff4397e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lms/djangoapps/courseware/grades.py
+2
-0
No files found.
lms/djangoapps/courseware/grades.py
View file @
ee627190
...
@@ -38,6 +38,8 @@ def yield_dynamic_descriptor_descendents(descriptor, module_creator):
...
@@ -38,6 +38,8 @@ def yield_dynamic_descriptor_descendents(descriptor, module_creator):
def
get_dynamic_descriptor_children
(
descriptor
):
def
get_dynamic_descriptor_children
(
descriptor
):
if
descriptor
.
has_dynamic_children
():
if
descriptor
.
has_dynamic_children
():
module
=
module_creator
(
descriptor
)
module
=
module_creator
(
descriptor
)
if
module
is
None
:
return
[]
return
module
.
get_child_descriptors
()
return
module
.
get_child_descriptors
()
else
:
else
:
return
descriptor
.
get_children
()
return
descriptor
.
get_children
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment