From befe6be86c0efbc418a977f11bf72862c5296bba Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 26 Dec 2024 09:57:07 -0500 Subject: [PATCH] fix: Catch switchcoder exception in run_commands --- aider/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/commands.py b/aider/commands.py index 8c02fe0bb..341499fdf 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1309,6 +1309,7 @@ class Commands: continue self.io.tool_output(f"\nExecuting: {cmd}") + # catch switchcoder exception and print error that cmd is only supported with interactive /commands ai! self.run(cmd) def completions_raw_save(self, document, complete_event):