mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Capture TypeError
This commit is contained in:
@@ -261,7 +261,7 @@ def grab_list(file):
|
|||||||
global spotify
|
global spotify
|
||||||
spotify = spotipy.Spotify(auth=token)
|
spotify = spotipy.Spotify(auth=token)
|
||||||
grab_single(raw_song, number=number)
|
grab_single(raw_song, number=number)
|
||||||
except (urllib2.URLError, IOError):
|
except (urllib2.URLError, TypeError, IOError):
|
||||||
lines.append(raw_song)
|
lines.append(raw_song)
|
||||||
misc.trim_song(file)
|
misc.trim_song(file)
|
||||||
with open(file, 'a') as myfile:
|
with open(file, 'a') as myfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user