use yaml.safe_load()
`yaml.load()` is deprecated and insecure
This commit is contained in:
parent
657ab68355
commit
ef73b044f2
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ HEADERS = [
|
||||||
|
|
||||||
|
|
||||||
with open(os.path.join(KEY_DIR, "me.yml")) as f:
|
with open(os.path.join(KEY_DIR, "me.yml")) as f:
|
||||||
conf = yaml.load(f)
|
conf = yaml.safe_load(f)
|
||||||
|
|
||||||
USERNAME = conf["username"]
|
USERNAME = conf["username"]
|
||||||
NAME = conf["name"]
|
NAME = conf["name"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue