Skip to content

Commit 61985ac

Browse files
committed
Get property right. #48
1 parent 7f2b69d commit 61985ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flask_oauthlib/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,12 @@ def content_type(self):
290290

291291
def _get_property(self, key, default=False):
292292
attr = getattr(self, '_%s' % key)
293-
if attr:
293+
if attr is not None:
294294
return attr
295295
if not self.app_key:
296296
if default is not False:
297297
return default
298-
return None
298+
return attr
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)