Skip to content

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

Add explanation for error suppression in the method

shenchucheng9dc5212d4709
diff --git a/metagpt/tools/libs/browser.py b/metagpt/tools/libs/browser.py
index 223434b3a..8d6daec11 100644
--- a/metagpt/tools/libs/browser.py
+++ b/metagpt/tools/libs/browser.py
@@ -62,6 +62,7 @@ class Browser:
with mem_fs.open(filename, "w") as f:
f.write(html)
+ # Since RAG is an optional optimization, if it fails, the simplified HTML can be used as a fallback.
with contextlib.suppress(Exception):
from metagpt.rag.engines import SimpleEngine # avoid circular import