Skip to content

Commit

Permalink
Facebook: do not except if error_reason and error are None
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Murav'jov committed Oct 20, 2015
1 parent 94abc06 commit b98e0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authomatic/providers/oauth2.py
Expand Up @@ -375,7 +375,7 @@ def login(self):
error_description = self.params.get('error_description') \
or error_message or error

if 'denied' in error_reason:
if error_reason and 'denied' in error_reason:
raise CancellationError(error_description,
url=self.user_authorization_url)
else:
Expand Down

0 comments on commit b98e0ae

Please sign in to comment.