From 53bde5f4aaacbec94d569b1533655af1724360a8 Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Mon, 23 Feb 2026 00:06:48 +0000 Subject: [PATCH] Fix syntax errors in execution.py --- src/ollama_cli/tools/execution.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ollama_cli/tools/execution.py b/src/ollama_cli/tools/execution.py index 4ee6525..d7f65e6 100644 --- a/src/ollama_cli/tools/execution.py +++ b/src/ollama_cli/tools/execution.py @@ -28,11 +28,9 @@ def run_python(code: str, args: str = "") -> str: os.remove(temp_file) if result.returncode == 0: - return f"Success: -{output}" if output else "Success (no output)" + return f"Success:\n{output}" if output else "Success (no output)" else: - return f"Error (Exit {result.returncode}): -{output}" + return f"Error (Exit {result.returncode}):\n{output}" except Exception as e: return f"Execution Error: {str(e)}" \ No newline at end of file