Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Change status access from header to attribute. #616

Merged
merged 1 commit into from
Aug 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change status access from header to attribute.
This is to unify all the times a status is used from the
response (containing header info) of an HTTP request.
  • Loading branch information
dhermes committed Aug 11, 2016
commit cb6566eb37cbe6d96864b56ee39283b35ca43e9b
2 changes: 1 addition & 1 deletion oauth2client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def _do_refresh_request(self, http):
# An {'error':...} response body means the token is expired or
# revoked, so we flag the credentials as such.
logger.info('Failed to retrieve access token: %s', content)
error_msg = 'Invalid response {0}.'.format(resp['status'])
error_msg = 'Invalid response {0}.'.format(resp.status)
try:
d = json.loads(content)
if 'error' in d:
Expand Down