From: W. Trevor King Date: Sat, 13 Oct 2012 11:08:49 +0000 (-0400) Subject: mailpipe: fix course -> error.course in InvalidAssignmentSubject handling. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f76dd0e02ec8497d6c6f1dfa561f1d783da8426;p=pygrader.git mailpipe: fix course -> error.course in InvalidAssignmentSubject handling. --- diff --git a/pygrader/mailpipe.py b/pygrader/mailpipe.py index 5902320..be7b1a0 100644 --- a/pygrader/mailpipe.py +++ b/pygrader/mailpipe.py @@ -1095,7 +1095,7 @@ def _get_error_response(error): # prefer a submittable example assignment assignments = [ a for a in error.course.assignments if a.submittable] - assignments += course.assignments # but fall back to any one + assignments += error.course.assignments # but fall back to any one hint = ( 'Remember to use the full name for the assignment in the\n' 'subject. For example:\n'