diff --git a/build/release.py b/build/release.py index ae7cbc0a7..c67d873b1 100644 --- a/build/release.py +++ b/build/release.py @@ -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):