mailpipe: don't double-repr subjects for InvalidHandlerMessage responses.
authorW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 15:34:50 +0000 (11:34 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 15:34:50 +0000 (11:34 -0400)
pygrader/mailpipe.py

index f2a967188bba4ac71b3da6c65a81983482d78548..7f3902b40a17060ccb67f1db4f0a5dc946100aa9 100644 (file)
@@ -911,7 +911,7 @@ def _get_error_response(error):
             '  {!r}\n'
             'which does not match any submittable handler name for\n'
             '{}.\n'
-            '{}').format(repr(error.subject), error.course.name, hint)
+            '{}').format(error.subject, error.course.name, hint)
     elif isinstance(error, SubjectlessMessage):
         subject = 'no subject in {}'.format(error.message['Message-ID'])
         text = 'We received an email message from you without a subject.'