Skip to content

Commit

Permalink
FIXUP: use proc_stderr when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
almet committed Jan 13, 2025
1 parent 3b961e6 commit f6a616f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dangerzone/isolation_provider/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f6a616f

Please sign in to comment.