projects
/
pygrader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93744f6
)
handler: remove TypeError check InvalidSubjectMessage.__init__.
author
W. Trevor King
<wking@tremily.us>
Sun, 2 Sep 2012 16:19:44 +0000
(12:19 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sun, 2 Sep 2012 16:20:47 +0000
(12:20 -0400)
Leftover debugging cruft.
pygrader/handler/__init__.py
patch
|
blob
|
history
diff --git
a/pygrader/handler/__init__.py
b/pygrader/handler/__init__.py
index 4b248eab4948c0f273f7c9625d2fb3e8ace4e3c7..158aef5fadaa9cb64d22b1718948b643f12e33f8 100644
(file)
--- 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