diff options
Diffstat (limited to 'scripts/report.py')
-rw-r--r-- | scripts/report.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/report.py b/scripts/report.py index 3617ee2..0ac8659 100644 --- a/scripts/report.py +++ b/scripts/report.py @@ -183,4 +183,9 @@ try: register_command(cmd_report) except ImportError: - print 'Disable report, json-py is not installed.' + try: + import cjson as json + json.read = json.decode + json.write = json.encode + except ImportError: + print 'Disable report, neither json-py nor python-cjson are not installed.' |