diff --git a/pomice/spotify/client.py b/pomice/spotify/client.py index 0fceb84..ba517f5 100644 --- a/pomice/spotify/client.py +++ b/pomice/spotify/client.py @@ -58,7 +58,7 @@ class Client: spotify_id = result.group("id") if not result: - return InvalidSpotifyURL("The Spotify link provided is not valid.") + raise InvalidSpotifyURL("The Spotify link provided is not valid.") request_url = REQUEST_URL.format(type=spotify_type, id=spotify_id) @@ -90,4 +90,4 @@ class Client: tracks += [Track(track["track"]) for track in next_data["items"]] next_page_url = next_data["next"] - return Playlist(data, tracks) \ No newline at end of file + return Playlist(data, tracks)