From 117b56d9cbc77fc4d716014984ca4cf0f163909e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Sep 2012 10:33:09 -0400 Subject: [PATCH] handler:get: Responses from this handler are complete. This avoids double-signing emails and other atrocities. --- pygrader/handler/get.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] -- 2.26.2