mirror of
1
0
Fork 0

Add keyboard interrupt handler

This commit is contained in:
Anish Athalye 2014-07-19 00:12:51 -07:00
parent 5394184d14
commit 92ed009245
1 changed files with 3 additions and 0 deletions

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)