From 6d0f727c55a7addfc9bdbc3926515f060f4f83c9 Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti Date: Tue, 26 Nov 2024 11:35:26 +0100 Subject: [PATCH] Redirect `stderr` to pipe instead of STDOUT --- src/rod/utils/gazebo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rod/utils/gazebo.py b/src/rod/utils/gazebo.py index 8c0768e..9cc8b8e 100644 --- a/src/rod/utils/gazebo.py +++ b/src/rod/utils/gazebo.py @@ -106,8 +106,7 @@ def process_model_description_with_sdformat( cp = subprocess.run( [str(gazebo_executable), "sdf", "-p", fp.name], text=True, - stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, + capture_output=True, check=True, ) except subprocess.CalledProcessError as e: