Load yaml safely

This commit is contained in:
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