From 2bd61a7c48eb3750397387c8a2e1782c7d417e20 Mon Sep 17 00:00:00 2001 From: Alok Saboo Date: Sun, 10 Jul 2022 13:15:25 -0400 Subject: [PATCH] Update spotify.py --- beetsplug/spotify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 8abf3154c..7071e1c0c 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -194,8 +194,8 @@ 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 {0.status_code} for {1} and \ - params = {2}".format(response, url, params)) + raise SpotifyAPIError("API Error {} for {} and params = {}". + format(response.status_code, url, params)) else: raise ui.UserError( '{} API error:\n{}\nURL:\n{}\nparams:\n{}'.format(