commit | a0a52e44f254f4af4ae257427e7c9fb48d314aa0 | [log] [tgz] |
---|---|---|
author | Joe Gregorio <jcgregorio@google.com> | Thu Feb 17 17:13:26 2011 -0500 |
committer | Joe Gregorio <jcgregorio@google.com> | Thu Feb 17 17:13:26 2011 -0500 |
tree | 92b6a8a4c9c5da6edec720c1a26f938be62c0cca | |
parent | 9b57dd3e3c320b75cd3fbfb3cba97e6262d4fb93 [diff] |
Moving over OAuth 1.0 to use Storage, and updating samples to handle token revocation.
diff --git a/oauth2client/client.py b/oauth2client/client.py index 3527a48..e972564 100644 --- a/oauth2client/client.py +++ b/oauth2client/client.py
@@ -208,7 +208,8 @@ d = simplejson.loads(content) if 'error' in d: self._invalid = True - self.store(self) + if self.store is not None: + self.store(self) except: pass logging.error('Failed to retrieve access token: %s' % content)