1
0
mirror of https://github.com/moepman/acertmgr.git synced 2024-12-29 09:21:51 +01:00

configuration: use yaml.safe_load instead of load

This commit is contained in:
Markus 2019-02-22 10:31:28 +01:00
parent 67c83d8fce
commit d6f8f29e82

View File

@ -198,7 +198,7 @@ def load():
except ValueError:
import yaml
config_fd.seek(0)
globalconfig = yaml.load(config_fd)
globalconfig = yaml.safe_load(config_fd)
# create work directory if it does not exist
if not os.path.isdir(work_dir):
@ -218,7 +218,7 @@ def load():
except ValueError:
import yaml
config_fd.seek(0)
for entry in yaml.load(config_fd).items():
for entry in yaml.safe_load(config_fd).items():
config.append(parse_config_entry(entry, globalconfig, work_dir))
return config