Merge pull request #5136 from mitocw/cg/bugfix/namerror_legacy

Corrected NameError for invalid variable
This commit is contained in:
Sarina Canelake
2014-09-09 09:11:25 -04:00

View File

@@ -1817,7 +1817,7 @@ def dump_grading_context(course):
notes = ''
if getattr(sdesc, 'score_by_attempt', False):
notes = ', score by attempt!'
msg += " %s (grade_format=%s, Assignment=%s%s)\n" % (s.display_name, grade_format, aname, notes)
msg += " %s (grade_format=%s, Assignment=%s%s)\n" % (sdesc.display_name, grade_format, aname, notes)
msg += "all descriptors:\n"
msg += "length=%d\n" % len(gcontext['all_descriptors'])
msg = '<pre>%s</pre>' % msg.replace('<', '&lt;')