mirror of https://github.com/caronc/apprise
Fixed warning issued on pyYAML v5.1+
parent
240785b2d2
commit
16635a8d8f
|
@ -309,8 +309,8 @@ class ConfigBase(URLBase):
|
||||||
response = list()
|
response = list()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Load our data
|
# Load our data (safely)
|
||||||
result = yaml.load(content)
|
result = yaml.load(content, Loader=yaml.SafeLoader)
|
||||||
|
|
||||||
except (AttributeError, yaml.error.MarkedYAMLError) as e:
|
except (AttributeError, yaml.error.MarkedYAMLError) as e:
|
||||||
# Invalid content
|
# Invalid content
|
||||||
|
|
Loading…
Reference in New Issue