mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Fix access token regeneration
This commit is contained in:
@@ -305,7 +305,7 @@ def grab_list(text_file):
|
||||
try:
|
||||
grab_single(raw_song, number=number)
|
||||
# token expires after 1 hour
|
||||
except spotipy.oauth2.SpotifyOauthError:
|
||||
except spotipy.client.SpotifyException:
|
||||
# refresh token when it expires
|
||||
new_token = misc.generate_token()
|
||||
global spotify
|
||||
|
||||
Reference in New Issue
Block a user