From 9dc5212d4709733d63ffd0b9999660939f7369fd Mon Sep 17 00:00:00 2001 From: shenchucheng Date: Fri, 31 May 2024 15:50:05 +0800 Subject: [PATCH] Add explanation for error suppression in the method --- metagpt/tools/libs/browser.py | 1 + 1 file changed, 1 insertion(+) 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