web/__init__.py
branchstable
changeset 3758 d43c9709434d
parent 3741 3864c7dfddf0
child 3777 3ef8cdb5fb1c
child 3803 414bb8439002
--- 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))