Skip to content

Commit

Permalink
fixed warning message thrown when logging in
Browse files Browse the repository at this point in the history
  • Loading branch information
cms21 committed Oct 30, 2023
1 parent 5034973 commit 37e8044
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 == 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 37e8044

Please sign in to comment.