Woops, `data` can be an empty list XD

nix-headless-fix
Tyler Goodlet 2024-05-28 16:19:28 -04:00
parent 37ca081555
commit b7883325a9
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class Client:
headers=headers, headers=headers,
) )
json: dict = res.json() json: dict = res.json()
if data := json.get('data'): if (data := json.get('data')) is not None:
return data return data
else: else:
api_url: str = self._http.base_url api_url: str = self._http.base_url