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")