Skip to content

Commit

Permalink
Merge branch 'main' into cli_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cms21 authored Nov 29, 2023
2 parents e6f2105 + 26f8d50 commit 949a3a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion balsam/client/requests_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ def request(
except requests.Timeout as exc:
logger.warning(f"Attempt Retry of Timed-out request {http_method} {absolute_url}")
self.backoff(exc)
except (requests.ConnectionError, requests.HTTPError) as exc:
except requests.ConnectionError as exc:
logger.warning(f"Attempt retry ({self._attempt} of {self.retry_count}) of connection: {exc}")
self.backoff(exc)
except requests.HTTPError as exc:
if authenticating is False:
logger.warning(f"Attempt retry ({self._attempt} of {self.retry_count}) of connection: {exc}")
self.backoff(exc)
else:
try:
return response.json() # type: ignore
Expand Down

0 comments on commit 949a3a5

Please sign in to comment.