Skip to content

Commit f439dcb

Browse files
dhermesJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Change status access from header to attribute. (googleapis#616)
This is to unify all the times a status is used from the response (containing header info) of an HTTP request.
1 parent 6a12a1f commit f439dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth2client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def _do_refresh_request(self, http):
814814
# An {'error':...} response body means the token is expired or
815815
# revoked, so we flag the credentials as such.
816816
logger.info('Failed to retrieve access token: %s', content)
817-
error_msg = 'Invalid response {0}.'.format(resp['status'])
817+
error_msg = 'Invalid response {0}.'.format(resp.status)
818818
try:
819819
d = json.loads(content)
820820
if 'error' in d:

0 commit comments

Comments
 (0)