Woops, `data` can be an empty list XD
parent
37ca081555
commit
b7883325a9
|
@ -305,7 +305,7 @@ class Client:
|
|||
headers=headers,
|
||||
)
|
||||
json: dict = res.json()
|
||||
if data := json.get('data'):
|
||||
if (data := json.get('data')) is not None:
|
||||
return data
|
||||
else:
|
||||
api_url: str = self._http.base_url
|
||||
|
|
Loading…
Reference in New Issue