Skip to content

Commit 7f2b69d

Browse files
committed
Fix client property. #48
1 parent 9e61643 commit 7f2b69d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flask_oauthlib/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,10 @@ def _get_property(self, key, default=False):
292292
attr = getattr(self, '_%s' % key)
293293
if attr:
294294
return attr
295-
if default is not False and not self.app_key:
296-
# since it has no app_key, use the original property
297-
# YES, it is `attr`, not default
298-
return attr
295+
if not self.app_key:
296+
if default is not False:
297+
return default
298+
return None
299299
app = self.oauth.app or current_app
300300
config = app.config[self.app_key]
301301
if default is not False:

0 commit comments

Comments
 (0)