From e5494703fef0eb7c554bb166f85d328bc158dc0c Mon Sep 17 00:00:00 2001 From: Sora Date: Sat, 11 Nov 2023 22:19:17 +0100 Subject: [PATCH] yaml loading working this time --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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