From c2ad2b3d4c446e0cc4b14922104fea86da03294b Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sun, 10 Jul 2022 13:23:10 -0400 Subject: [PATCH] Update spotify.py --- beetsplug/spotify.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 7071e1c0c..b95546dd2 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -194,8 +194,9 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): time.sleep(int(seconds) + 1) return self._handle_response(request_type, url, params=params) elif response.status_code == 404: - raise SpotifyAPIError("API Error {} for {} and params = {}". - format(response.status_code, url, params)) + raise SpotifyAPIError("API Error: {}\nURL: {}\nparams: {}". + format(response.status_code, url, + params)) else: raise ui.UserError( '{} API error:\n{}\nURL:\n{}\nparams:\n{}'.format(