mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
Update error code
This commit is contained in:
parent
e68369bc8a
commit
d87e3e6628
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ class SpotifyPlugin(MetadataSourcePlugin, BeetsPlugin):
|
|||
retries += 1
|
||||
time.sleep(1)
|
||||
except requests.exceptions.RequestException as e:
|
||||
if 'token expired' in str(e):
|
||||
if e.response.status_code == 401:
|
||||
self._log.debug(
|
||||
f'{self.data_source} access token has expired.'
|
||||
f' Reauthenticating.'
|
||||
|
|
|
|||
Loading…
Reference in a new issue