Handle keyboard interrupt
This commit is contained in:
parent
6e60e72603
commit
34c7dde3ed
1 changed files with 3 additions and 0 deletions
|
@ -25,4 +25,7 @@ def cli():
|
|||
except BaseException as e:
|
||||
logging.error(str(e))
|
||||
return 1
|
||||
except KeyboardInterrupt:
|
||||
logging.error("Aborted.")
|
||||
return 1
|
||||
return 0
|
||||
|
|
Reference in a new issue