From 1b0f5eed8c216cde10f60e457f02edbd4debc3f2 Mon Sep 17 00:00:00 2001 From: Key Date: Thu, 6 Jun 2024 10:57:31 -0500 Subject: [PATCH] remove state in auth, fix exception to backoff 502 --- tap_klaviyo/auth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tap_klaviyo/auth.py b/tap_klaviyo/auth.py index b836c75..48f868e 100644 --- a/tap_klaviyo/auth.py +++ b/tap_klaviyo/auth.py @@ -82,8 +82,7 @@ def update_access_token(self) -> None: token_response.raise_for_status() self.logger.info("OAuth authorization attempt was successful.") except Exception as ex: - self.state.update({"auth_error_response": token_response.text}) - raise RuntimeError( + raise Exception( f"Failed OAuth login, response was '{token_response.text()}'. {ex}" ) token_json = token_response.json()