Fix YAMLLoadWarning

This commit is contained in:
Sumanjay
2019-03-14 13:26:35 +05:30
committed by GitHub
parent 21fd63be6f
commit 46eb2e3e32

View File

@@ -58,7 +58,7 @@ def merge(default, config):
def get_config(config_file):
try:
with open(config_file, "r") as ymlfile:
cfg = yaml.load(ymlfile)
cfg = yaml.safe_load(ymlfile)
except FileNotFoundError:
log.info("Writing default configuration to {0}:".format(config_file))
with open(config_file, "w") as ymlfile: