summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/clients/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'oauthlib/oauth2/rfc6749/clients/base.py')
-rw-r--r--oauthlib/oauth2/rfc6749/clients/base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/clients/base.py b/oauthlib/oauth2/rfc6749/clients/base.py
index 88065ab..35a3fd5 100644
--- a/oauthlib/oauth2/rfc6749/clients/base.py
+++ b/oauthlib/oauth2/rfc6749/clients/base.py
@@ -513,7 +513,10 @@ class Client:
self._expires_at = time.time() + int(self.expires_in)
if 'expires_at' in response:
- self._expires_at = int(response.get('expires_at'))
+ try:
+ self._expires_at = int(response.get('expires_at'))
+ except:
+ self._expires_at = None
if 'mac_key' in response:
self.mac_key = response.get('mac_key')