yaml loading working this time
This commit is contained in:
2
main.py
2
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
|
||||
|
||||
Reference in New Issue
Block a user