From c9885c6a9981dc5e229ac2838bfbd88a8e7ac2c2 Mon Sep 17 00:00:00 2001 From: Pranav-Singh-Devloper Date: Thu, 5 Nov 2026 19:10:51 +0530 Subject: [PATCH] Send user code stderr to the exercise console The user process was started with stderr=sys.stdout, i.e. RAM's own stdout. Python exercises only redirect sys.stderr to the console when WebGUI is imported, so tracebacks raised before that import never reached the user. Merge stderr into the console stdout instead. Fixes #306 --- robotics_application_manager/manager/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robotics_application_manager/manager/manager.py b/robotics_application_manager/manager/manager.py index 9b5a44c..88dddc7 100644 --- a/robotics_application_manager/manager/manager.py +++ b/robotics_application_manager/manager/manager.py @@ -869,7 +869,7 @@ def on_run_application(self, event): command, stdin=open("/dev/pts/" + console_fd, "r"), stdout=open("/dev/pts/" + console_fd, "w"), - stderr=sys.stdout, + stderr=subprocess.STDOUT, bufsize=1024, universal_newlines=True, shell=shell,