Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

fix issues

黄伟韬56e4bab9ec0d
diff --git a/metagpt/tools/libs/editor.py b/metagpt/tools/libs/editor.py
index f8bf7135e..63d7f9fd9 100644
--- a/metagpt/tools/libs/editor.py
+++ b/metagpt/tools/libs/editor.py
@@ -730,8 +730,7 @@ class Editor(BaseModel):
if to_replace.strip() == "":
if file_content.strip() == "":
raise ValueError(f"The file '{file_name}' is empty. Please use the append method to add content.")
- else:
- raise ValueError("`to_replace` must not be empty.")
+ raise ValueError("`to_replace` must not be empty.")
if file_content.count(to_replace) > 1:
raise ValueError(
diff --git a/metagpt/tools/libs/linter.py b/metagpt/tools/libs/linter.py
index 4e1a2defe..7720d6962 100644
--- a/metagpt/tools/libs/linter.py
+++ b/metagpt/tools/libs/linter.py
@@ -32,7 +32,7 @@ class Linter:
self.languages = dict(
python=self.py_lint,
- sql=self.fake_lint, # Base_lint lacks support for full SQL syntax. Use fake_lint to bypass the validation.
+ sql=self.fake_lint, # base_lint lacks support for full SQL syntax. Use fake_lint to bypass the validation.
)
self.all_lint_cmd = None