added custom KeyboardInterrupt support

This commit is contained in:
Kirill Vasin
2019-06-18 19:11:49 +03:00
parent c023b8da57
commit ccb8e338e1
+5 -1
View File
@@ -774,7 +774,11 @@ class Stage(object):
env=fix_env(os.environ),
executable=executable,
)
p.communicate()
try:
p.communicate()
except KeyboardInterrupt:
p.communicate()
if p.returncode != 0:
raise StageCmdFailedError(self)