diff options
Diffstat (limited to 'autogpts/autogpt/autogpt/commands/file_operations_utils.py')
-rw-r--r-- | autogpts/autogpt/autogpt/commands/file_operations_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autogpts/autogpt/autogpt/commands/file_operations_utils.py b/autogpts/autogpt/autogpt/commands/file_operations_utils.py index da65bafaa..e9dcae41b 100644 --- a/autogpts/autogpt/autogpt/commands/file_operations_utils.py +++ b/autogpts/autogpt/autogpt/commands/file_operations_utils.py @@ -68,7 +68,7 @@ class XMLParser(ParserStrategy): # Reading as dictionary and returning string format class YAMLParser(ParserStrategy): def read(self, file: BinaryIO) -> str: - data = yaml.load(file, Loader=yaml.FullLoader) + data = yaml.load(file, Loader=yaml.SafeLoader) text = str(data) return text |