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'):
|
if m.endswith('.m4a.temp'):
|
||||||
os.remove('Music/' + m)
|
os.remove('Music/' + m)
|
||||||
print('')
|
print('')
|
||||||
command = fixEncoding(raw_input('>> Enter a song/cmd: '))
|
try:
|
||||||
print('')
|
command = fixEncoding(raw_input('>> Enter a song/cmd: '))
|
||||||
initializeInput(command)
|
print('')
|
||||||
|
initializeInput(command)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
graceQuit()
|
||||||
|
|||||||
Reference in New Issue
Block a user