Merge pull request #86 from caronc/85-yaml-warning-fix

Fixed warning issued on pyYAML v5.1+; refs #86
This commit is contained in:
Chris Caron 2019-03-16 13:03:31 -04:00 committed by GitHub
commit 2d5fe7ac7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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