From 8cd2f0ef71b6956799ead7e92f62040bbdbe7e68 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 4 Sep 2024 09:06:17 -0700 Subject: [PATCH] defend against spawn TypeError: sequence item 2: expected str instance, list found --- aider/commands.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aider/commands.py b/aider/commands.py index 551de4373d3..c2b4ea8a655 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -766,7 +766,12 @@ def cmd_test(self, args): if not args and self.coder.test_cmd: args = self.coder.test_cmd + if not args: + return + if not callable(args): + if type(args) is not str: + raise ValueError(repr(args)) return self.cmd_run(args, True) errors = args()