diff --git a/apricot/oauth/oauth_client.py b/apricot/oauth/oauth_client.py index 34eddba..0baa8f6 100644 --- a/apricot/oauth/oauth_client.py +++ b/apricot/oauth/oauth_client.py @@ -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)