diff --git a/main.py b/main.py index 72145d7..ad4cc38 100644 --- a/main.py +++ b/main.py @@ -93,7 +93,7 @@ def yaml_to_services_list(filepath: str) -> dict|None: ycontent = None with open(filepath, 'r') as yfile: try: - ycontent = yaml.load(yfile.readlines()) + ycontent = yaml.safe_load(yfile) except yaml.YAMLError as yerror: print(f"{filepath} doesn't seems to be a yaml file.") raise yerror