Commit 45b3cf2d by Sarina Canelake

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

Corrected NameError for invalid variable
parents 3a73fccc 6b95ec8d
...@@ -1817,7 +1817,7 @@ def dump_grading_context(course): ...@@ -1817,7 +1817,7 @@ def dump_grading_context(course):
notes = '' notes = ''
if getattr(sdesc, 'score_by_attempt', False): if getattr(sdesc, 'score_by_attempt', False):
notes = ', score by attempt!' 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 += "all descriptors:\n"
msg += "length=%d\n" % len(gcontext['all_descriptors']) msg += "length=%d\n" % len(gcontext['all_descriptors'])
msg = '<pre>%s</pre>' % msg.replace('<', '&lt;') msg = '<pre>%s</pre>' % msg.replace('<', '&lt;')
......
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