From: Leandro Lucarella Date: Mon, 31 Dec 2007 15:32:02 +0000 (-0200) Subject: Bugfix: don't call the handler twice. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/0f712a015de9e15849ef89bce5bcfb855f841b89?ds=sidebyside Bugfix: don't call the handler twice. --- diff --git a/pymin/dispatcher.py b/pymin/dispatcher.py index 1e3d709..c89bb8b 100644 --- a/pymin/dispatcher.py +++ b/pymin/dispatcher.py @@ -482,7 +482,7 @@ class Dispatcher: try: r = handler(*route, **kwargs) log.debug(u'Dispatcher.dispatch: handler returned %s', r) - return handler(*route, **kwargs) + return r except TypeError, e: log.debug(u'Dispatcher.dispatch: type error (%r)', e) m = args_re.match(unicode(e))