From 3e09556e114ea80819f9af9c5d399771a1115568 Mon Sep 17 00:00:00 2001 From: vveeps <54472340+vveeps@users.noreply.github.com> Date: Sun, 31 Oct 2021 19:57:43 +0200 Subject: [PATCH] return -> raise --- pomice/spotify/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)