From 2a1bb2724be8473f71f8be7ca9291e5c6956cc04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E8=8C=82=E5=AE=87?= Date: Thu, 13 Jul 2023 10:17:54 +0800 Subject: [PATCH] Tolerates some formatting errors --- metagpt/utils/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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