mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Handle interrupts on input
This commit is contained in:
@@ -228,6 +228,9 @@ while True:
|
||||
if m.endswith('.m4a.temp'):
|
||||
os.remove('Music/' + m)
|
||||
print('')
|
||||
command = fixEncoding(raw_input('>> Enter a song/cmd: '))
|
||||
print('')
|
||||
initializeInput(command)
|
||||
try:
|
||||
command = fixEncoding(raw_input('>> Enter a song/cmd: '))
|
||||
print('')
|
||||
initializeInput(command)
|
||||
except KeyboardInterrupt:
|
||||
graceQuit()
|
||||
|
||||
Reference in New Issue
Block a user