From f6a616f23b3323c640a461abee0a1b945e463d88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Mon, 13 Jan 2025 16:15:10 +0100 Subject: [PATCH] FIXUP: use proc_stderr when needed --- dangerzone/isolation_provider/container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerzone/isolation_provider/container.py b/dangerzone/isolation_provider/container.py index 0c3eb59be..27383ac6d 100644 --- a/dangerzone/isolation_provider/container.py +++ b/dangerzone/isolation_provider/container.py @@ -125,7 +125,7 @@ def is_available() -> bool: with subprocess.Popen( [container_runtime, "image", "ls"], stdout=subprocess.DEVNULL, - stderr=self.proc_stderr, + stderr=subprocess.PIPE, startupinfo=get_subprocess_startupinfo(), ) as p: _, stderr = p.communicate() @@ -154,7 +154,7 @@ def exec( args, stdin=subprocess.PIPE, stdout=subprocess.PIPE, - stderr=subprocess.PIPE, + stderr=self.proc_stderr, startupinfo=startupinfo, # Start the conversion process in a new session, so that we can later on # kill the process group, without killing the controlling script.