Load yaml safely

这个提交包含在:
Mike 2019-05-16 20:05:25 -07:00
父节点 b5899e0ec9
当前提交 2ce2224009
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -119,7 +119,7 @@ class DiskUsageWarn:
raise Exception("Unable to open config file: " + path)
# Parse
config = yaml.load(f)
config = yaml.safe_load(f)
# Add the config file's own path
config["path"] = path