Add keyboard interrupt handler
This commit is contained in:
parent
5394184d14
commit
92ed009245
1 changed files with 3 additions and 0 deletions
|
@ -44,3 +44,6 @@ def main():
|
||||||
except (ReadingError, DispatchError) as e:
|
except (ReadingError, DispatchError) as e:
|
||||||
log.error('%s' % e)
|
log.error('%s' % e)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
log.error('\n==> Operation aborted')
|
||||||
|
exit(1)
|
||||||
|
|
Loading…
Reference in a new issue