diff options
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/user_session.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/user_session.py b/wqflask/wqflask/user_session.py index 1ed5b802..39b2aec1 100644 --- a/wqflask/wqflask/user_session.py +++ b/wqflask/wqflask/user_session.py @@ -150,7 +150,7 @@ class UserSession: def user_email(self): """Shortcut to the user email address""" - if self.logged_in: + if self.logged_in and 'email_address' in self.user_details: return self.user_details['email_address'] else: return None |