Skip to content

Commit af82a56

Browse files
eofsmasci
authored andcommitted
Check first if oauthlib_core_class exists
1 parent 4d0923f commit af82a56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

oauth2_provider/views/mixins.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ def get_oauthlib_core_class(cls):
5151
"""
5252
Return the OAuthLibCore implementation class to use
5353
"""
54-
if cls.oauthlib_core_class is None:
54+
if not hasattr(cls, 'oauthlib_core_class'):
5555
return OAuthLibCore
56-
else:
57-
return cls.oauthlib_core_class
56+
return cls.oauthlib_core_class
5857

5958
@classmethod
6059
def get_server(cls):

0 commit comments

Comments
 (0)