Commit f5aa46a1 by Bridger Maxwell

Fixed log of error. Xmodules don't have ids, so I log the location instead.

parent 827f2dd6
...@@ -91,7 +91,7 @@ def grade(student, request, course, student_module_cache=None): ...@@ -91,7 +91,7 @@ def grade(student, request, course, student_module_cache=None):
if graded_total.possible > 0: if graded_total.possible > 0:
format_scores.append(graded_total) format_scores.append(graded_total)
else: else:
log.exception("Unable to grade a section with a total possible score of zero. " + str(section_descriptor.id)) log.exception("Unable to grade a section with a total possible score of zero. " + str(section_descriptor.location))
totaled_scores[section_format] = format_scores totaled_scores[section_format] = format_scores
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment