mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
added custom KeyboardInterrupt support
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user