Fix yaml loading.
This commit is contained in:
parent
09571d1158
commit
9e03067d2f
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user