diff options
Diffstat (limited to 'autogpts/autogpt/autogpt/utils.py')
-rw-r--r-- | autogpts/autogpt/autogpt/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autogpts/autogpt/autogpt/utils.py b/autogpts/autogpt/autogpt/utils.py index 4aa503a7b..18a7a6389 100644 --- a/autogpts/autogpt/autogpt/utils.py +++ b/autogpts/autogpt/autogpt/utils.py @@ -7,7 +7,7 @@ from colorama import Fore def validate_yaml_file(file: str | Path): try: with open(file, encoding="utf-8") as fp: - yaml.load(fp.read(), Loader=yaml.FullLoader) + yaml.load(fp.read(), Loader=yaml.SafeLoader) except FileNotFoundError: return (False, f"The file {Fore.CYAN}`{file}`{Fore.RESET} wasn't found") except yaml.YAMLError as e: |