diff --git a/gamdl/apple_music_api.py b/gamdl/apple_music_api.py index 8e1a62a..647646c 100644 --- a/gamdl/apple_music_api.py +++ b/gamdl/apple_music_api.py @@ -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,