Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Feb 26, 2018
1 parent 11c8612 commit ae24316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aioauth_client.py
Expand Up @@ -341,9 +341,9 @@ def get_access_token(self, code, loop=None, redirect_uri=None, **payload):

try:
self.access_token = data['access_token']
except Exception:
except KeyError:
self.logger.error(
'Error when getting the access token.\nData returned by OAuth server: %s',
'Error when getting the access token.\nData returned by OAuth server: %r',
data,
)
raise web.HTTPBadRequest(reason='Failed to obtain OAuth access token.')
Expand Down

0 comments on commit ae24316

Please sign in to comment.