Fix access token regeneration

This commit is contained in:
Ritiek Malhotra
2017-10-28 01:07:50 +05:30
committed by GitHub
parent 2780ba405f
commit cfd392c6ce

View File

@@ -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