mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Use yaml safe_load instead of load (#6672)
This commit is contained in:
@@ -28,5 +28,5 @@ def load_yaml_file(file_path: str) -> Any:
|
||||
Opens a file and returns its contents.
|
||||
"""
|
||||
with open(file_path, "r") as file:
|
||||
return yaml.load(file, Loader=yaml.FullLoader)
|
||||
return yaml.safe_load(file)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user