Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--restore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/restore.py b/restore.py
index 26183a0..67877ce 100644
--- a/restore.py
+++ b/restore.py
@@ -46,7 +46,8 @@ import sugar.logger
try:
import json
-except ImportError:
+ json.dumps
+except (ImportError, AttributeError):
import simplejson as json