Handle keyboard interrupt

This commit is contained in:
Jake Howard 2017-04-04 19:52:25 +01:00
parent 6e60e72603
commit 34c7dde3ed

View file

@ -25,4 +25,7 @@ def cli():
except BaseException as e: except BaseException as e:
logging.error(str(e)) logging.error(str(e))
return 1 return 1
except KeyboardInterrupt:
logging.error("Aborted.")
return 1
return 0 return 0