Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fallback json import from django.utils

  • Loading branch information...
commit ebf669e9097259600b6076dd14a9e9b157feba73 1 parent bdd64e3
@labisso labisso authored
View
5 web/src/python/nimbusrest/connection.py
@@ -19,7 +19,10 @@
try:
import json
except ImportError:
- import simplejson as json
+ try:
+ import simplejson as json
+ except ImportError:
+ import django.utils.simplejson as json
from nimbusrest.error import NimbusServerError, NotFoundError, ConflictError
View
5 web/src/python/nimbusrest/error.py
@@ -19,7 +19,10 @@
try:
import json
except ImportError:
- import simplejson as json
+ try:
+ import simplejson as json
+ except ImportError:
+ import django.utils.simplejson as json
class NimbusClientError(Exception):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.