Changeset - 3ae42e10b665
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-09-06 11:32:36
marcin@python-works.com
fix ext-json extension issue when exception is raised for non-serializable objects
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/ext_json.py
Show inline comments
 
@@ -92,7 +92,7 @@ try:
 
                return _obj_dump(obj)
 
            except NotImplementedError:
 
                pass
 
            return json.JSONEncoder.default(self, obj)
 
            raise TypeError("%r is not JSON serializable" % (obj,))
 
    # monkey-patch JSON encoder to use extended version
 
    json.dumps = functools.partial(json.dumps, cls=ExtendedEncoder)
 
    json.dump = functools.partial(json.dump, cls=ExtendedEncoder)
0 comments (0 inline, 0 general)