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