diff --git a/src/py/flwr/superexec/simulation.py b/src/py/flwr/superexec/simulation.py index 732d749c5c53..58cc194a16d4 100644 --- a/src/py/flwr/superexec/simulation.py +++ b/src/py/flwr/superexec/simulation.py @@ -125,10 +125,9 @@ def start_run( command.extend(["--run-config", f"{override_config}"]) # Start Simulation - proc = subprocess.Popen( # pylint: disable=consider-using-with + proc = subprocess.run( # pylint: disable=consider-using-with command, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, + check=True, text=True, ) @@ -136,7 +135,7 @@ def start_run( return RunTracker( run_id=run_id, - proc=proc, + proc=proc, # type:ignore ) # pylint: disable-next=broad-except