yet another brain fart stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 20 Oct 2009 17:11:52 +0200
branchstable
changeset 3758 d43c9709434d
parent 3756 725a2b005479
child 3759 e68b8e0143b1
yet another brain fart
web/__init__.py
--- a/web/__init__.py	Tue Oct 20 16:53:52 2009 +0200
+++ b/web/__init__.py	Tue Oct 20 17:11:52 2009 +0200
@@ -50,8 +50,8 @@
 
 def jsonize(function):
     def newfunc(*args, **kwargs):
+        value = function(*args, **kwargs)
         try:
-            value = function(*args, **kwargs)
             return json_dumps(value)
         except TypeError:
             return json_dumps(repr(value))