Use yaml safe_load

This commit is contained in:
Erik Johnston 2019-03-22 10:20:17 +00:00
parent 01e6b405be
commit 3677548a82
7 changed files with 11 additions and 11 deletions

View file

@ -68,7 +68,7 @@ def load_appservices(hostname, config_files):
try:
with open(config_file, 'r') as f:
appservice = _load_appservice(
hostname, yaml.load(f), config_file
hostname, yaml.safe_load(f), config_file
)
if appservice.id in seen_ids:
raise ConfigError(