1
0
Fork 0
mirror of synced 2024-06-25 18:31:09 -04:00

Add keyboard interrupt handler

This commit is contained in:
Anish Athalye 2014-07-19 00:12:51 -07:00
parent 5394184d14
commit 67d19e658a

View file

@ -44,3 +44,6 @@ def main():
except (ReadingError, DispatchError) as e:
log.error('%s' % e)
exit(1)
except KeyboardInterrupt:
log.error('\n==> Operation aborted')
exit(1)