handler: remove TypeError check InvalidSubjectMessage.__init__.
authorW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 16:19:44 +0000 (12:19 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 2 Sep 2012 16:20:47 +0000 (12:20 -0400)
Leftover debugging cruft.

pygrader/handler/__init__.py

index 4b248eab4948c0f273f7c9625d2fb3e8ace4e3c7..158aef5fadaa9cb64d22b1718948b643f12e33f8 100644 (file)
@@ -43,10 +43,7 @@ class InvalidSubjectMessage (InvalidMessage):
     def __init__(self, subject=None, **kwargs):
         if 'error' not in kwargs:
             kwargs['error'] = 'invalid subject {!r}'.format(subject)
-        try:
-            super(InvalidSubjectMessage, self).__init__(**kwargs)
-        except TypeError:
-            raise ValueError(kwargs)
+        super(InvalidSubjectMessage, self).__init__(**kwargs)
         self.subject = subject