From 8d0cf44aa34227b35bc6140f8c7f4fc077422d03 Mon Sep 17 00:00:00 2001 From: Roland Tannous Date: Sat, 14 Mar 2026 14:59:12 +0000 Subject: [PATCH] studio: hide Python traceback when setup script exits with error --- cli/commands/studio.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cli/commands/studio.py b/cli/commands/studio.py index f392c01245..60a0a4d0ff 100644 --- a/cli/commands/studio.py +++ b/cli/commands/studio.py @@ -145,9 +145,11 @@ def setup(): raise typer.Exit(1) if platform.system() == "Windows": - subprocess.run( + result = subprocess.run( ["powershell", "-ExecutionPolicy", "Bypass", "-File", str(script)], - check = True, ) else: - subprocess.run(["bash", str(script)], check = True) + result = subprocess.run(["bash", str(script)]) + + if result.returncode != 0: + raise typer.Exit(result.returncode)