mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 20:51:49 +02:00
Consume container output when it's not parsed
Revert run_command() logic to sending again stdout and stderr to
/dev/null (just as it was prior to commit d28aa5a
). Fixes #316
This commit is contained in:
parent
56b5b98f1e
commit
bb6ee5d83f
1 changed files with 7 additions and 1 deletions
|
@ -48,7 +48,13 @@ def run_command(
|
|||
"""
|
||||
if stdout_callback is None and stderr_callback is None:
|
||||
try:
|
||||
subprocess.run(args, timeout=timeout, check=True)
|
||||
subprocess.run(
|
||||
args,
|
||||
timeout=timeout,
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL,
|
||||
check=True,
|
||||
)
|
||||
except subprocess.CalledProcessError as e:
|
||||
raise RuntimeError(error_message) from e
|
||||
except subprocess.TimeoutExpired as e:
|
||||
|
|
Loading…
Reference in a new issue