Fix KeyboardInterrupt signal for Python 2

This commit is contained in:
Adam J. Stewart 2021-07-11 13:49:35 -05:00 committed by Todd Gamblin
parent 667ab50199
commit 60765d38d0

View file

@ -782,7 +782,10 @@ def main(argv=None):
raise
sys.stderr.write('\n')
tty.error("Keyboard interrupt.")
if sys.version_info >= (3, 5):
return signal.SIGINT.value
else:
return signal.SIGINT
except SystemExit as e:
if spack.config.get('config:debug'):