mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-09-01 15:55:42 +08:00
Tolerates some formatting errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user