Skip to content

Commit 75b2afc

Browse files
Merge branch 'master' into 2.3
2 parents 2dfd8c9 + 198b679 commit 75b2afc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rest_framework/compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from __future__ import unicode_literals
77

88
import django
9+
from django.core.exceptions import ImproperlyConfigured
910

1011
# Try to import six from Django, fallback to included `six`.
1112
try:
@@ -477,7 +478,7 @@ def apply_markdown(text):
477478
try:
478479
import oauth_provider
479480
from oauth_provider.store import store as oauth_provider_store
480-
except ImportError:
481+
except (ImportError, ImproperlyConfigured):
481482
oauth_provider = None
482483
oauth_provider_store = None
483484

0 commit comments

Comments
 (0)