We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a61d2a commit b8656e2Copy full SHA for b8656e2
src/tue_get/installer_impl.py
@@ -155,7 +155,12 @@ def _set_target(self, target: str):
155
self._current_target_dir = parent_target_dir
156
157
def _out_handler(self, sub: BackgroundPopen, line: str) -> None:
158
- def _write_stdin(msg) -> None:
+ def _write_stdin(msg: str) -> None:
159
+ if sub.returncode is not None:
160
+ self.tue_install_error(
161
+ f"Cannot write to stdin of process {sub.pid} as it has already terminated {line=}"
162
+ )
163
+ return
164
sub.stdin.write(f"{msg}\n")
165
sub.stdin.flush()
166
0 commit comments