mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: handle None values in valid_formats list generation
This commit is contained in:
parent
e648bac74b
commit
5d175745bf
1 changed files with 5 additions and 1 deletions
|
@ -166,7 +166,11 @@ class Coder:
|
|||
res.original_kwargs = dict(kwargs)
|
||||
return res
|
||||
|
||||
valid_formats = [c.edit_format for c in coders.__all__ if hasattr(c, "edit_format")]
|
||||
valid_formats = [
|
||||
str(c.edit_format)
|
||||
for c in coders.__all__
|
||||
if hasattr(c, "edit_format") and c.edit_format is not None
|
||||
]
|
||||
raise UnknownEditFormat(edit_format, valid_formats)
|
||||
|
||||
def clone(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue