Woops, `data` can be an empty list XD
parent
128a2d507f
commit
018694bbdb
|
@ -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