mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Add explanation for error suppression in the method
This commit is contained in:
parent
aeef03e29c
commit
9dc5212d47
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue