mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-22 11:18:39 +00:00
handle no search results
This commit is contained in:
parent
328428a520
commit
564ece387c
@ -78,7 +78,7 @@ class AppleMusicApi:
|
||||
try:
|
||||
response.raise_for_status()
|
||||
response_dict = response.json()
|
||||
assert response_dict.get("data") or response_dict.get("results")
|
||||
assert response_dict.get("data") or response_dict.get("results") is not None
|
||||
except (
|
||||
requests.HTTPError,
|
||||
requests.exceptions.JSONDecodeError,
|
||||
|
Loading…
Reference in New Issue
Block a user