From 2ce2224009526e024b032b76dc918fd4394160c5 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 16 May 2019 20:05:25 -0700 Subject: [PATCH] Load yaml safely --- disk-usage-warn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk-usage-warn b/disk-usage-warn index 2d99083..f19c3e5 100755 --- a/disk-usage-warn +++ b/disk-usage-warn @@ -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