From 9e03067d2f678ad4f36354e2d0714bc024188d91 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sat, 8 Jun 2024 20:59:23 +0200 Subject: [PATCH] Fix yaml loading. --- sensors-polling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors-polling.py b/sensors-polling.py index b33e39c..0427a9e 100755 --- a/sensors-polling.py +++ b/sensors-polling.py @@ -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")