From 12d9b1bd22e1c930df443cc2f58f0bc66af8621d Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Mon, 4 Jul 2022 14:31:28 -0400 Subject: [PATCH] Update exception --- beetsplug/spotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index ee5a6463c..fb3228baa 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -194,7 +194,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin): time.sleep(int(seconds) + 1) return self._handle_response(request_type, url, params=params) elif 'analysis not found' in response.text: - raise SpotifyAPIError("API Error {0.status_code} for {}" + raise SpotifyAPIError("API Error {0.status_code} for {1}" .format(response, url)) else: raise ui.UserError(