diff options
author | Erik Johnston <erik@matrix.org> | 2019-03-22 10:20:17 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-03-22 10:20:17 +0000 |
commit | 3677548a82be347bcc69cfd4bfa4570581ee755f (patch) | |
tree | 0db80c2a0fb17c5fb9b3b5bd87f4691f5ac8adc7 /synctl | |
parent | Merge pull request #4908 from matrix-org/erikj/block_peek_on_blocked_rooms (diff) | |
download | synapse-3677548a82be347bcc69cfd4bfa4570581ee755f.tar.xz |
Use yaml safe_load
Diffstat (limited to 'synctl')
-rwxr-xr-x | synctl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synctl b/synctl index 816c898b36..07a68e6d85 100755 --- a/synctl +++ b/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 |