catch ctrl-c on confirm
This commit is contained in:
parent
c7161ba1ac
commit
cc14ac4a46
1 changed files with 4 additions and 1 deletions
|
@ -156,7 +156,10 @@ in the future"""
|
|||
|
||||
|
||||
def confirm():
|
||||
return raw_input('Is this what you want? [y/N] ').strip().lower() == 'y'
|
||||
try:
|
||||
return raw_input('Is this what you want? [y/N] ').strip().lower() == 'y'
|
||||
except KeyboardInterrupt:
|
||||
return False
|
||||
|
||||
|
||||
def run_sanity_checks(repo, branch):
|
||||
|
|
Loading…
Reference in a new issue