From 2f76dd0e02ec8497d6c6f1dfa561f1d783da8426 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 13 Oct 2012 07:08:49 -0400 Subject: [PATCH] mailpipe: fix course -> error.course in InvalidAssignmentSubject handling. --- pygrader/mailpipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.26.2