change to f-string

This commit is contained in:
Alok Saboo 2023-10-10 15:22:10 -04:00
parent b69de85d49
commit 4b955152c5

View file

@ -196,8 +196,8 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
elif e.response.status_code == 429:
seconds = response.headers.get('Retry-After',
DEFAULT_WAITING_TIME)
self._log.debug('Too many API requests. Retrying after {} \
seconds.', seconds)
self._log.debug(f'Too many API requests. Retrying after'
f'{seconds} seconds.')
time.sleep(int(seconds) + 1)
return self._handle_response(request_type, url, params=params)
elif e.response.status_code == 503: