Check for whether or not we can load simplejson from django.utils as a last ditch effort in import statements
This commit is contained in:
parent
3369f7d81d
commit
69fd3cc7db
1 changed files with 5 additions and 2 deletions
|
|
@ -25,8 +25,11 @@ try:
|
|||
except ImportError:
|
||||
try:
|
||||
import json as simplejson
|
||||
except:
|
||||
raise Exception("Twython requires the simplejson library (or Python 2.6) to work. http://www.undefined.org/python/")
|
||||
except ImportError:
|
||||
try:
|
||||
from django.utils import simplejson
|
||||
except:
|
||||
raise Exception("Twython requires the simplejson library (or Python 2.6) to work. http://www.undefined.org/python/")
|
||||
|
||||
try:
|
||||
import oauth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue