Skip to content

Commit

Permalink
fix: catch exceptions.RefreshError (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
arithmetic1728 authored May 11, 2020
1 parent 371b57c commit 3d672e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/oauth2/id_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def fetch_id_token(request, audience):
)
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.
Expand Down

0 comments on commit 3d672e9

Please # to comment.