Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lms/djangoapps/courseware/grades.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ def get_score(course_id, user, problem_descriptor, module_creator, model_data_ca
# with the LMS, so they need to always be scored. (E.g. foldit.)
if problem_descriptor.always_recalculate_grades:
problem = module_creator(problem_descriptor)
if problem is None:
return (None, None)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth at least logging a WARNING level in our app logs here? Is module_createor() returning None a common case or an exception case?

Thanks for your explanation earlier, but I'm still not sure how often we should expect this to be None...

score = problem.get_score()
if score is not None:
return (score['score'], score['total'])
Expand Down
2 changes: 0 additions & 2 deletions lms/envs/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
MITX_FEATURES['ENABLE_HINTER_INSTRUCTOR_VIEW'] = True
MITX_FEATURES['ENABLE_INSTRUCTOR_BETA_DASHBOARD'] = True

FEEDBACK_SUBMISSION_EMAIL = "dummy@dummy.org"

FEEDBACK_SUBMISSION_EMAIL = "dummy@example.com"

WIKI_ENABLED = True
Expand Down