From 0f712a015de9e15849ef89bce5bcfb855f841b89 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 31 Dec 2007 13:32:02 -0200 Subject: [PATCH] Bugfix: don't call the handler twice. --- pymin/dispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.43.0