Skip to content

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

Tolerates some formatting errors

程茂宇2a1bb2724be8
diff --git a/metagpt/utils/common.py b/metagpt/utils/common.py
index f74d2d8b7..f23993670 100644
--- a/metagpt/utils/common.py
+++ b/metagpt/utils/common.py
@@ -79,7 +79,7 @@ class OutputParser:
# Convert string representation of list to a Python list using ast.literal_eval.
tasks = ast.literal_eval(tasks_list_str)
else:
- raise Exception
+ tasks = text.split("\n")
return tasks
@classmethod