mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
defend against spawn TypeError: sequence item 2: expected str instance, list found
This commit is contained in:
parent
c4e4967691
commit
8cd2f0ef71
1 changed files with 5 additions and 0 deletions
|
@ -766,7 +766,12 @@ class Commands:
|
|||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue