Woops, `data` can be an empty list XD
parent
37ca081555
commit
b7883325a9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue