This commit is contained in:
Alok Saboo 2022-07-04 14:34:32 -04:00
parent 12d9b1bd22
commit ca4b5bcec4

View file

@ -195,7 +195,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
return self._handle_response(request_type, url, params=params)
elif 'analysis not found' in response.text:
raise SpotifyAPIError("API Error {0.status_code} for {1}"
.format(response, url))
.format(response, url))
else:
raise ui.UserError(
'{} API error:\n{}\nURL:\n{}\nparams:\n{}'.format(