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 48ea2005650913685f5145ec8754880b58228d9f..d26339063f765e949cf3131cb8b40e228c00bcb0 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