fixbug: mermaid error

This commit is contained in:
莘权 马 2024-04-09 15:16:33 +08:00
parent d7b9325bc8
commit c8317bee92
2 changed files with 3 additions and 1 deletions

View file

@ -81,6 +81,8 @@ async def mermaid_to_file(engine, mermaid_code, output_file_without_suffix, widt
from metagpt.utils.mmdc_ink import mermaid_to_file
return await mermaid_to_file(mermaid_code, output_file_without_suffix)
elif engine == "none":
return 0
else:
logger.warning(f"Unsupported mermaid engine: {engine}")
return 0