Skip to content

Commit

Permalink
remove state in auth, fix exception to backoff 502
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 committed Jun 6, 2024
1 parent 0f73c18 commit 1b0f5ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tap_klaviyo/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1b0f5ee

Please sign in to comment.