Browse Source

Load yaml safely

tags/v1.1.1^0
Mike 1 year ago
parent
commit
2ce2224009
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      disk-usage-warn

+ 1
- 1
disk-usage-warn View File

@@ -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


Loading…
Cancel
Save