mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Fix Spotify API error formatting
This commit is contained in:
parent
0d6df42d5f
commit
12a8e0a792
1 changed files with 3 additions and 1 deletions
|
|
@ -152,7 +152,9 @@ class SpotifyPlugin(APIAutotaggerPlugin, BeetsPlugin):
|
|||
return self._handle_response(request_type, url, params=params)
|
||||
else:
|
||||
raise ui.UserError(
|
||||
u'{} API error:\n{}', self.data_source, response.text
|
||||
u'{} API error:\n{}\nURL:\n{}\nparams:\n{}'.format(
|
||||
self.data_source, response.text, url, params
|
||||
)
|
||||
)
|
||||
return response.json()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue