mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-05 22:02:38 +02:00
fix bad cases
This commit is contained in:
parent
3b8740f078
commit
a41956f85f
5 changed files with 9 additions and 9 deletions
|
|
@ -97,7 +97,7 @@ class LineNumberError(Exception):
|
|||
"search_dir",
|
||||
"search_file",
|
||||
"find_file",
|
||||
"search_index_repo",
|
||||
"similarity_search",
|
||||
]
|
||||
)
|
||||
class Editor(BaseModel):
|
||||
|
|
@ -811,7 +811,7 @@ class Editor(BaseModel):
|
|||
context=context.strip(),
|
||||
)
|
||||
if mismatch_error:
|
||||
return mismatch_error
|
||||
raise ValueError(mismatch_error)
|
||||
ret_str = self._edit_file_impl(
|
||||
file_name,
|
||||
start=first_replaced_line_number,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue