Update signjwt.py

This commit is contained in:
Jay Lee
2023-04-10 12:18:56 -04:00
committed by GitHub
parent 6a3692d7f4
commit 47537ab30a

View File

@ -84,7 +84,8 @@ class SignJwt(google.auth.crypt.Signer):
try: try:
credentials, _ = google.auth.default(scopes=_IAM_SCOPES, credentials, _ = google.auth.default(scopes=_IAM_SCOPES,
request=request) request=request)
except google.auth.exceptions.DefaultCredentialsError as e: except (google.auth.exceptions.DefaultCredentialsError,
google.auth.exceptions.RefreshError) as e:
controlflow.system_error_exit(2, e) controlflow.system_error_exit(2, e)
httpObj = transport.AuthorizedHttp( httpObj = transport.AuthorizedHttp(
credentials, credentials,