commit | 3d672e9cddd9e8c4946290ab9f90ca9009b8be69 | [log] [tgz] |
---|---|---|
author | arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> | Mon May 11 14:22:32 2020 -0700 |
committer | GitHub <noreply@github.com> | Mon May 11 14:22:32 2020 -0700 |
tree | 5e9cb62d4b2a33c123228a60927d3d11c04b7451 | |
parent | 371b57c44392cfa51cc4a6a09194262a83725a75 [diff] |
fix: catch exceptions.RefreshError (#508)
diff --git a/google/oauth2/id_token.py b/google/oauth2/id_token.py index f559c6c..e78add4 100644 --- a/google/oauth2/id_token.py +++ b/google/oauth2/id_token.py
@@ -212,7 +212,7 @@ ) credentials.refresh(request) return credentials.token - except (ImportError, exceptions.TransportError): + except (ImportError, exceptions.TransportError, exceptions.RefreshError): pass # 2. Try to use service account credentials to get ID token.