Skip to content

Commit

Permalink
defend against spawn TypeError: sequence item 2: expected str instanc…
Browse files Browse the repository at this point in the history
…e, list found
  • Loading branch information
paul-gauthier committed Sep 4, 2024
1 parent c4e4967 commit 8cd2f0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aider/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8cd2f0e

Please sign in to comment.