aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorTom Christie2013-05-01 09:54:07 -0700
committerTom Christie2013-05-01 09:54:07 -0700
commit198b679e02954ebcfac37e9d0146caf575df4f5a (patch)
tree6b70d59eff1b043685b04585ac4ad756bc59022a /rest_framework
parent5d357a9b0807311b97de1e999be588f36fcd5b2f (diff)
parente5040fbf942e021444f629a371bc71c9d47d052f (diff)
downloaddjango-rest-framework-198b679e02954ebcfac37e9d0146caf575df4f5a.tar.bz2
Merge pull request #804 from dbrgn/iss803
Catch ImproperlyConfigured exception in compat.py
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/compat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rest_framework/compat.py b/rest_framework/compat.py
index 067e9018..f8e4e7ca 100644
--- a/rest_framework/compat.py
+++ b/rest_framework/compat.py
@@ -6,6 +6,7 @@ versions of django/python, and compatibility wrappers around optional packages.
from __future__ import unicode_literals
import django
+from django.core.exceptions import ImproperlyConfigured
# Try to import six from Django, fallback to included `six`.
try:
@@ -473,7 +474,7 @@ except ImportError:
try:
import oauth_provider
from oauth_provider.store import store as oauth_provider_store
-except ImportError:
+except (ImportError, ImproperlyConfigured):
oauth_provider = None
oauth_provider_store = None