Skip to content

Commit

Permalink
add backoff for connection error
Browse files Browse the repository at this point in the history
keyn4 committed Jul 5, 2024
1 parent 0822f11 commit ccc50f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tap_intacct/client.py
Original file line number Diff line number Diff line change
@@ -128,7 +128,7 @@ def _set_session_id(self, user_id: str, company_id: str, user_password: str):

@backoff.on_exception(
backoff.expo,
(BadGatewayError),
(BadGatewayError, ConnectionError, ConnectionResetError, requests.exceptions.ConnectionError),
max_tries=5,
factor=3,
)

0 comments on commit ccc50f7

Please sign in to comment.