From 47537ab30a6924fbd22533652e6d4b3224dd78e8 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 10 Apr 2023 12:18:56 -0400 Subject: [PATCH] Update signjwt.py --- src/gam/auth/signjwt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gam/auth/signjwt.py b/src/gam/auth/signjwt.py index 4658f055..16d1acab 100644 --- a/src/gam/auth/signjwt.py +++ b/src/gam/auth/signjwt.py @@ -84,7 +84,8 @@ class SignJwt(google.auth.crypt.Signer): try: credentials, _ = google.auth.default(scopes=_IAM_SCOPES, 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) httpObj = transport.AuthorizedHttp( credentials,