Fixed bug with propagating kw args to rules.
This commit is contained in:
parent
d73c287663
commit
b2ee8a989c
@ -67,9 +67,9 @@ class Dispatcher(object):
|
||||
return self
|
||||
return register_rule
|
||||
|
||||
def __call__(self, *args):
|
||||
def __call__(self, *args, **kwargs):
|
||||
""" Dispatch call to appropriate rule."""
|
||||
rule = self.lookup_rule(*args)
|
||||
if rule is None:
|
||||
raise TypeError("No available rule found for %r" % (args,))
|
||||
return rule(*args)
|
||||
return rule(*args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user