From cbd39ed706b4c457d68562b50cf99006fee3acd3 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 2 Sep 2012 12:19:44 -0400 Subject: [PATCH] handler: remove TypeError check InvalidSubjectMessage.__init__. Leftover debugging cruft. --- pygrader/handler/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.26.2