From a2cdb4eefcd5e745b35196a69bbf4d916de5c41e Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 5 Oct 2011 15:23:20 +0200 Subject: updated simplejson --- module/common/json_layer.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'module/common/json_layer.py') diff --git a/module/common/json_layer.py b/module/common/json_layer.py index a075d2527..7b1c80bb5 100644 --- a/module/common/json_layer.py +++ b/module/common/json_layer.py @@ -8,6 +8,9 @@ try: # since python 2.6 from json import loads as json_loads from json import dumps as json_dumps except ImportError: - import module.lib.simplejson as json - from module.lib.simplejson import loads as json_loads - from module.lib.simplejson import dumps as json_dumps \ No newline at end of file + try: + import module.lib.simplejson as json + from module.lib.simplejson import loads as json_loads + from module.lib.simplejson import dumps as json_dumps + except: + print "Could not import simplejson" -- cgit v1.2.3