mirror of
https://github.com/caronc/apprise.git
synced 2025-06-22 10:41:27 +02:00
Merge pull request #86 from caronc/85-yaml-warning-fix
Fixed warning issued on pyYAML v5.1+; refs #86
This commit is contained in:
commit
2d5fe7ac7a
@ -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…
x
Reference in New Issue
Block a user