Skip to content

Commit

Permalink
Tolerates some formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
程茂宇 committed Jul 13, 2023
1 parent 0c6d4ae commit 2a1bb27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metagpt/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def parse_file_list(cls, text: str) -> list[str]:
# 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
Expand Down

0 comments on commit 2a1bb27

Please sign in to comment.