Compare commits

..

No commits in common. "b7883325a9e1ce9136f757c2fe9d3c8bbe597949" and "44b8c705214c4e71ec635ae9440ba0f807fbfedd" have entirely different histories.

1 changed files with 1 additions and 2 deletions

View File

@ -305,10 +305,9 @@ class Client:
headers=headers,
)
json: dict = res.json()
if (data := json.get('data')) is not None:
if data := json.get('data'):
return data
else:
api_url: str = self._http.base_url
log.error(
f'Error making request to {api_url} ->\n'
f'{pformat(res)}'