From: W. Trevor King Date: Sun, 2 Sep 2012 16:19:44 +0000 (-0400) Subject: handler: remove TypeError check InvalidSubjectMessage.__init__. X-Git-Tag: v0.3~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cbd39ed706b4c457d68562b50cf99006fee3acd3;p=pygrader.git handler: remove TypeError check InvalidSubjectMessage.__init__. Leftover debugging cruft. --- diff --git a/pygrader/handler/__init__.py b/pygrader/handler/__init__.py index 4b248ea..158aef5 100644 --- a/pygrader/handler/__init__.py +++ b/pygrader/handler/__init__.py @@ -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