mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 02:44:53 -04:00
Use yaml safe_load
This commit is contained in:
parent
01e6b405be
commit
3677548a82
7 changed files with 11 additions and 11 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue