web/__init__.py
changeset 6614 4b9a785df0f7
parent 6106 1e6d93f70d14
child 7990 a673d1d9a738
--- a/web/__init__.py	Mon Oct 25 10:15:47 2010 +0200
+++ b/web/__init__.py	Mon Oct 25 10:18:10 2010 +0200
@@ -30,7 +30,9 @@
 from cubicweb.utils import json_dumps
 from cubicweb.uilib import eid_param
 
-dumps = deprecated('[3.9] use cubicweb.utils.json_dumps instead of dumps')(json_dumps)
+assert json_dumps is not None, 'no json module installed'
+dumps = deprecated('[3.9] use cubicweb.utils.json_dumps instead of dumps')(
+    json_dumps)
 
 INTERNAL_FIELD_VALUE = '__cubicweb_internal_field__'