summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app.py b/app.py
index e31ff1e..d3b8566 100644
--- a/app.py
+++ b/app.py
@@ -1,4 +1,7 @@
-import json
+try:
+ import json
+except ImportError:
+ import simplejson as json
import os
import random
import requests