mirror of
https://github.com/caronc/apprise.git
synced 2025-06-21 18:21:29 +02:00
Fixed warning issued on pyYAML v5.1+
This commit is contained in:
parent
240785b2d2
commit
16635a8d8f
@ -309,8 +309,8 @@ class ConfigBase(URLBase):
|
||||
response = list()
|
||||
|
||||
try:
|
||||
# Load our data
|
||||
result = yaml.load(content)
|
||||
# Load our data (safely)
|
||||
result = yaml.load(content, Loader=yaml.SafeLoader)
|
||||
|
||||
except (AttributeError, yaml.error.MarkedYAMLError) as e:
|
||||
# Invalid content
|
||||
|
Loading…
x
Reference in New Issue
Block a user