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()