From e4329c312ddbafa8b0d06734afd1663b1a6b0926 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Wed, 8 Aug 2012 16:03:28 -0400 Subject: [PATCH] Fixed log of error. Xmodules don't have ids, so I log the location instead. --- lms/djangoapps/courseware/grades.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/grades.py b/lms/djangoapps/courseware/grades.py index deeae979c9..b0220670eb 100644 --- a/lms/djangoapps/courseware/grades.py +++ b/lms/djangoapps/courseware/grades.py @@ -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