mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-10-11 01:48:28 -04:00
Use yaml safe_load
This commit is contained in:
parent
01e6b405be
commit
3677548a82
7 changed files with 11 additions and 11 deletions
4
synctl
4
synctl
|
@ -164,7 +164,7 @@ def main():
|
|||
sys.exit(1)
|
||||
|
||||
with open(configfile) as stream:
|
||||
config = yaml.load(stream)
|
||||
config = yaml.safe_load(stream)
|
||||
|
||||
pidfile = config["pid_file"]
|
||||
cache_factor = config.get("synctl_cache_factor")
|
||||
|
@ -206,7 +206,7 @@ def main():
|
|||
workers = []
|
||||
for worker_configfile in worker_configfiles:
|
||||
with open(worker_configfile) as stream:
|
||||
worker_config = yaml.load(stream)
|
||||
worker_config = yaml.safe_load(stream)
|
||||
worker_app = worker_config["worker_app"]
|
||||
if worker_app == "synapse.app.homeserver":
|
||||
# We need to special case all of this to pick up options that may
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue