mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
catch keyboard interrupt
This commit is contained in:
parent
1565514018
commit
3bf64a6e80
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ def run(args):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
tasklist.run(bootstrap_info)
|
tasklist.run(bootstrap_info)
|
||||||
except Exception as e:
|
except (Exception, KeyboardInterrupt) as e:
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
log.error('Rolling back')
|
log.error('Rolling back')
|
||||||
rollback_tasklist = TaskList()
|
rollback_tasklist = TaskList()
|
||||||
|
|
Loading…
Add table
Reference in a new issue