web/_exceptions.py
changeset 5408 120db445c179
parent 5385 b6e250dd7a7d
parent 5389 809d3b5b3d31
child 5423 e15abfdcce38
--- a/web/_exceptions.py	Fri Apr 23 17:56:01 2010 +0200
+++ b/web/_exceptions.py	Mon Apr 26 16:31:46 2010 +0200
@@ -53,11 +53,8 @@
         self.reason = reason
 
     def dumps(self):
-        try:
-            from json import dumps
-        except ImportError:
-            from simplejson import dumps
-        return dumps({'reason': self.reason})
+        from cubicweb.web import json
+        return json.dumps({'reason': self.reason})
 
 class LogOut(PublishException):
     """raised to ask for deauthentication of a logged in user"""