catch interactive interupts
This commit is contained in:
parent
3eda06f3b7
commit
528be9090d
|
@ -48,4 +48,7 @@ for b in config.get('button', 'names').split(','):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
pause()
|
try:
|
||||||
|
pause()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue