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

This commit is contained in:
Bridger Maxwell
2012-08-08 16:03:28 -04:00
parent 3930dabdc9
commit e4329c312d

View File

@@ -91,7 +91,7 @@ def grade(student, request, course, student_module_cache=None):
if graded_total.possible > 0:
format_scores.append(graded_total)
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