Handle interrupts on input

This commit is contained in:
Ritiek Malhotra
2017-05-02 21:07:50 +05:30
committed by GitHub
parent e16a8ea998
commit f0f0de3f92

View File

@@ -228,6 +228,9 @@ while True:
if m.endswith('.m4a.temp'):
os.remove('Music/' + m)
print('')
try:
command = fixEncoding(raw_input('>> Enter a song/cmd: '))
print('')
initializeInput(command)
except KeyboardInterrupt:
graceQuit()