Changing yaml.load() to yaml.safe_load()
This commit is contained in:
parent
b750f65311
commit
13deb5677b
@ -114,7 +114,7 @@ class BackupRotator:
|
|||||||
raise Exception("Unable to open config file: " + path)
|
raise Exception("Unable to open config file: " + path)
|
||||||
|
|
||||||
# Parse
|
# Parse
|
||||||
config = yaml.load(f)
|
config = yaml.safe_load(f)
|
||||||
|
|
||||||
# Add its own path
|
# Add its own path
|
||||||
config["__path"] = path
|
config["__path"] = path
|
||||||
|
Loading…
Reference in New Issue
Block a user