diff --git a/src/dvc_task/proc/process.py b/src/dvc_task/proc/process.py index 9b3c5da..dd36d05 100644 --- a/src/dvc_task/proc/process.py +++ b/src/dvc_task/proc/process.py @@ -196,6 +196,8 @@ def wait(self, timeout: Optional[int] = None) -> Optional[int]: self._proc.wait(timeout=timeout) except subprocess.TimeoutExpired as exc: raise TimeoutExpired(exc.cmd, exc.timeout) from exc + except KeyboardInterrupt: + pass self.returncode = self._proc.returncode self._close_fds() self._dump()