handler: expand kwargs when initializing InvalidAssignmentSubject.
authorW. Trevor King <wking@tremily.us>
Sat, 13 Oct 2012 11:24:25 +0000 (07:24 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 13 Oct 2012 11:24:25 +0000 (07:24 -0400)
pygrader/handler/__init__.py

index 48ea200..d263390 100644 (file)
@@ -88,7 +88,7 @@ class InvalidAssignmentSubject (InvalidSubjectMessage):
                 kwargs['error'] = 'Subject matches multiple assignments'
             else:
                 kwargs['error'] = "Subject doesn't match any assignment"
-        super(InvalidAssignmentSubject, self).__init__(kwargs)
+        super(InvalidAssignmentSubject, self).__init__(**kwargs)
         self.assignments = assignments