mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
Tolerates some formatting errors
This commit is contained in:
parent
0c6d4ae53a
commit
2a1bb2724b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue