diff options
author | Danny Hermes <daniel.j.hermes@gmail.com> | 2016-08-11 11:16:18 -0700 |
---|---|---|
committer | Jon Wayne Parrott <jonwayne@google.com> | 2016-08-11 11:16:18 -0700 |
commit | f439dcbef4137d3c5ee6ba1d92b90e7c0ff2d8f5 (patch) | |
tree | 02f919fefa822be76df7ad0ef18829e27ce99f11 /oauth2client | |
parent | 6a12a1fb58a32603396535cc1ef8789bbde9c49b (diff) | |
download | oauth2client-f439dcbef4137d3c5ee6ba1d92b90e7c0ff2d8f5.tar.gz |
Change status access from header to attribute. (#616)
This is to unify all the times a status is used from the
response (containing header info) of an HTTP request.
Diffstat (limited to 'oauth2client')
-rw-r--r-- | oauth2client/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oauth2client/client.py b/oauth2client/client.py index e89468b..d92ec82 100644 --- a/oauth2client/client.py +++ b/oauth2client/client.py @@ -814,7 +814,7 @@ class OAuth2Credentials(Credentials): # 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: |