mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Handle URLError and IOError when network problem
This commit is contained in:
@@ -363,7 +363,7 @@ def grab_list(file):
|
|||||||
print('')
|
print('')
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
grace_quit()
|
grace_quit()
|
||||||
except ConnectionError:
|
except (URLError, IOError):
|
||||||
lines.append(raw_song)
|
lines.append(raw_song)
|
||||||
trim_song(file)
|
trim_song(file)
|
||||||
with open(file, 'a') as myfile:
|
with open(file, 'a') as myfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user