Fix yaml loading.

This commit is contained in:
yohan 2024-06-08 20:59:23 +02:00
parent 09571d1158
commit 9e03067d2f

View File

@ -65,7 +65,7 @@ signal.signal(signal.SIGTERM,handler)
signal.signal(signal.SIGINT,handler)
with open('./conf.yml') as conf:
yaml_conf = yaml.load(conf)
yaml_conf = yaml.safe_load(conf)
polling_conf = yaml_conf.get("polling_conf")
http_port = yaml_conf.get("http_port")
default_polling_interval = yaml_conf.get("default_polling_interval")