We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a12a1f commit f439dcbCopy full SHA for f439dcb
oauth2client/client.py
@@ -814,7 +814,7 @@ def _do_refresh_request(self, http):
814
# An {'error':...} response body means the token is expired or
815
# revoked, so we flag the credentials as such.
816
logger.info('Failed to retrieve access token: %s', content)
817
- error_msg = 'Invalid response {0}.'.format(resp['status'])
+ error_msg = 'Invalid response {0}.'.format(resp.status)
818
try:
819
d = json.loads(content)
820
if 'error' in d:
0 commit comments