From: W. Trevor King Date: Sun, 2 Sep 2012 14:33:09 +0000 (-0400) Subject: handler:get: Responses from this handler are complete. X-Git-Tag: v0.3~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=117b56d9cbc77fc4d716014984ca4cf0f163909e;p=pygrader.git handler:get: Responses from this handler are complete. This avoids double-signing emails and other atrocities. --- diff --git a/pygrader/handler/get.py b/pygrader/handler/get.py index 1f44c4d..e354d2a 100644 --- a/pygrader/handler/get.py +++ b/pygrader/handler/get.py @@ -373,7 +373,7 @@ def run(basedir, course, message, person, subject, else: raise NotImplementedError( 'strange groups {} for {}'.format(person.groups, person)) - raise _Response(message=email) + raise _Response(message=email, complete=True) def _get_student_email(basedir, course, person, student=None): if student is None: @@ -399,7 +399,7 @@ def _get_student_email(basedir, course, person, student=None): ).format(student.name) message = _pgp_mime.encodedMIMEText(text) message['Subject'] = 'No grades for {}'.format(student.alias()) - raise _Response(message=message) + raise _Response(message=message, complete=True) elif len(emails) > 1: raise NotImplementedError(emails) email,callback = emails[0]