Fail the current song only if ConnectionError

This commit is contained in:
Ritiek Malhotra
2017-06-14 21:31:05 +05:30
committed by GitHub
parent 0d0d9a9515
commit 7f9f13eb1d

View File

@@ -402,7 +402,7 @@ def grabList(file):
print('') print('')
except KeyboardInterrupt: except KeyboardInterrupt:
graceQuit() graceQuit()
except BaseException: except ConnectionError:
lines.append(raw_song) lines.append(raw_song)
trimSong(file) trimSong(file)
with open(file, 'a') as myfile: with open(file, 'a') as myfile: