yaml loading working this time

This commit is contained in:
2023-11-11 22:19:17 +01:00
parent 714d0e50b6
commit e5494703fe

View File

@@ -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