Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion metagpt/actions/action_node.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ast
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Expand Down Expand Up @@ -578,7 +579,7 @@ async def xml_fill(self, context: str, images: Optional[Union[str, list[str]]] =
extracted_data[field_name] = raw_value.lower() in ("true", "yes", "1", "on", "True")
elif field_type == list:
try:
extracted_data[field_name] = eval(raw_value)
extracted_data[field_name] = ast.literal_eval(raw_value)
if not isinstance(extracted_data[field_name], list):
raise ValueError
except:
Expand Down
Loading