catch ctrl-c on confirm

This commit is contained in:
Alex Grintsvayg 2017-04-25 16:56:07 -04:00
parent c7161ba1ac
commit cc14ac4a46

View file

@ -156,7 +156,10 @@ in the future"""
def confirm(): 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): def run_sanity_checks(repo, branch):