Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Oct 23, 2024
1 parent 7091557 commit 33e0cb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apricot/oauth/oauth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def query(
if use_client_secret
else {}
)
log.msg(f"Making a request to {url} with {kwargs}")
return self.request(
url=url,
method="GET",
Expand Down Expand Up @@ -169,7 +170,9 @@ def query_(*args: Any, **kwargs: Any) -> requests.Response:
log.msg(str(exc))
log.msg("Authentication token is invalid.")
self.bearer_token_ = None
log.msg(f"Making query with {args} {kwargs}")
result = query_(*args, **kwargs)
log.msg(f"result {result} {result.status_code}")
if result.status_code == HTTPStatus.NO_CONTENT:
return {}
return result.json() # type: ignore[no-any-return]
Expand Down

0 comments on commit 33e0cb5

Please sign in to comment.