Use SafeLoader for Yaml parsing.

This commit is contained in:
Markus Birth 2021-08-22 21:43:15 +02:00
parent 16459da187
commit bd4c49634f
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -45,7 +45,7 @@ def getField(item, designation):
# Load record mappings from Yaml file
RECORD_MAP = yaml.load(open("mappings.yml", "rt"))
RECORD_MAP = yaml.load(open("mappings.yml", "rt"), Loader=yaml.SafeLoader)
for item in opif: