Fixed warning issued on pyYAML v5.1+

pull/86/head
Chris Caron 2019-03-16 12:48:56 -04:00
parent 240785b2d2
commit 16635a8d8f
1 changed files with 2 additions and 2 deletions

View File

@ -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