Skip to content
Snippets Groups Projects
Commit bc36b10f authored by Ben Adida's avatar Ben Adida
Browse files

error message

parent e34bbe99
Branches
Tags
No related merge requests found
...@@ -86,8 +86,10 @@ def json(func): ...@@ -86,8 +86,10 @@ def json(func):
return_val = func(self, *args, **kwargs) return_val = func(self, *args, **kwargs)
try: try:
return render_json(utils.to_json(return_val)) return render_json(utils.to_json(return_val))
except: except Exception, e:
import pdb; pdb.set_trace() import logging
logging.error("problem with serialization: " + str(return_val) + " / " + str(e))
raise e
return update_wrapper(convert_to_json,func) return update_wrapper(convert_to_json,func)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment