]> git.llucax.com Git - software/pymin.git/commitdiff
Bugfix: don't call the handler twice.
authorLeandro Lucarella <llucax@gmail.com>
Mon, 31 Dec 2007 15:32:02 +0000 (13:32 -0200)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 31 Dec 2007 15:32:02 +0000 (13:32 -0200)
pymin/dispatcher.py

index 1e3d709cab97033904fa3b4f76b735a398587e08..c89bb8b07a487995b08bfb9aa8033e9168d52ab5 100644 (file)
@@ -482,7 +482,7 @@ class Dispatcher:
         try:
             r = handler(*route, **kwargs)
             log.debug(u'Dispatcher.dispatch: handler returned %s', r)
         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))
         except TypeError, e:
             log.debug(u'Dispatcher.dispatch: type error (%r)', e)
             m = args_re.match(unicode(e))