aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/compat.py
diff options
context:
space:
mode:
authorTom Christie2013-05-05 16:48:46 +0100
committerTom Christie2013-05-05 16:48:46 +0100
commit75b2afcb23d0968d4c7115243cdfaa778da5dca4 (patch)
treea9d7063a5c5b65198851f52427219b9bb5d0d74f /rest_framework/compat.py
parent2dfd8c9697a1a0ec43a89369ae6a0239ec15b117 (diff)
parent198b679e02954ebcfac37e9d0146caf575df4f5a (diff)
downloaddjango-rest-framework-75b2afcb23d0968d4c7115243cdfaa778da5dca4.tar.bz2
Merge branch 'master' into 2.3
Diffstat (limited to 'rest_framework/compat.py')
-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 3828555b..cd39f544 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:
@@ -477,7 +478,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