mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 08:32:06 +01:00
Update spotify.py
This commit is contained in:
parent
2bd61a7c48
commit
c2ad2b3d4c
1 changed files with 3 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue