Skip to content

Commit 8cd2f0e

Browse files
committed
defend against spawn TypeError: sequence item 2: expected str instance, list found
1 parent c4e4967 commit 8cd2f0e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aider/commands.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,12 @@ def cmd_test(self, args):
766766
if not args and self.coder.test_cmd:
767767
args = self.coder.test_cmd
768768

769+
if not args:
770+
return
771+
769772
if not callable(args):
773+
if type(args) is not str:
774+
raise ValueError(repr(args))
770775
return self.cmd_run(args, True)
771776

772777
errors = args()

0 commit comments

Comments
 (0)