Skip to content

Commit 101a8eb

Browse files
committed
Fixed waiting for EOF by proc.stdout
1 parent 13f432f commit 101a8eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

render_machine/render_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def execute_script( # noqa: C901
9494
try:
9595
while proc.poll() is None:
9696
if time.time() - start_time >= script_timeout:
97-
partial_stdout = proc.stdout.read()
9897
_kill_process(proc)
98+
partial_stdout = proc.stdout.read()
9999
exc = subprocess.TimeoutExpired(cmd, script_timeout)
100100
exc.stdout = partial_stdout
101101
raise exc

0 commit comments

Comments
 (0)