Use a loader

This commit is contained in:
Joshua M. Boniface 2023-03-04 13:10:14 -05:00
parent 3e2bce00d5
commit a9748defc7

View File

@ -8,7 +8,7 @@ def load_manifest(manifest_file_name):
"""
with open(manifest_file_name, 'r') as manifest_file:
try:
cfg = yaml.load(manifest_file)
cfg = yaml.load(manifest_file, Loader=yaml.BaseLoader)
except yaml.YAMLError as e:
print("ERROR: Failed to load YAML manifest {}: {{".format(manifest_file_name, e))
return None