catch keyboard interrupt

This commit is contained in:
Anders Ingemann 2013-06-30 20:06:49 +02:00
parent 1565514018
commit 3bf64a6e80

View file

@ -34,7 +34,7 @@ def run(args):
try:
tasklist.run(bootstrap_info)
except Exception as e:
except (Exception, KeyboardInterrupt) as e:
log.exception(e)
log.error('Rolling back')
rollback_tasklist = TaskList()