Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Oct 22, 2024
1 parent 5fe8ddd commit 007d73b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apricot/oauth/oauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def query_(*args: Any, **kwargs: Any) -> requests.Response:
try:
result = query_(*args, **kwargs)
result.raise_for_status()
except (TokenExpiredError, requests.exceptions.HTTPError):
except (TokenExpiredError, requests.exceptions.HTTPError) as exc:
log.msg(str(exc))
log.msg("Authentication token has expired.")
self.bearer_token_ = None
result = query_(*args, **kwargs)
Expand Down

0 comments on commit 007d73b

Please sign in to comment.