Skip to content

Commit 22cffa8

Browse files
committed
Cover case, when subprocess stdin is not set due to some error
1 parent 3fcdd31 commit 22cffa8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

exec_helpers/subprocess_runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ def _execute_async( # pylint: disable=arguments-differ
290290

291291
if stdin is None:
292292
process_stdin: _OptionalIOBytes = process.stdin
293+
elif process.stdin is None:
294+
self.logger.warning("STDIN pipe is not set, but STDIN data is available to send.")
295+
process_stdin = None
293296
else:
294297
stdin_str: bytes = self._string_bytes_bytearray_as_bytes(stdin)
295298
try:

0 commit comments

Comments
 (0)