From 839768a2a50cc70e66ac6d716a0cd679acba14b1 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Fri, 29 Oct 2021 10:04:59 -0700 Subject: [PATCH] Fix error handling (#1447) --- src/gam/gapi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam/gapi/__init__.py b/src/gam/gapi/__init__.py index 45e25cc4..2bd6bdde 100644 --- a/src/gam/gapi/__init__.py +++ b/src/gam/gapi/__init__.py @@ -359,7 +359,7 @@ def handle_oauth_token_error(e, soft_errors): returns to the caller. """ token_error = str(e).replace('.', '') - if token_error in errors.OAUTH2_TOKEN_ERRORS or e.startswith( + if token_error in errors.OAUTH2_TOKEN_ERRORS or token_error.startswith( 'Invalid response'): if soft_errors: return