mirror of
https://github.com/matrix-org/synapse-s3-storage-provider.git
synced 2024-10-23 07:29:40 +00:00
Move to safe_yaml per https://msg.pyyaml.org/load
This commit is contained in:
parent
00d3697e63
commit
cea4154788
1 changed files with 1 additions and 1 deletions
|
@ -311,7 +311,7 @@ def get_postgres_conn(parser):
|
|||
"""Attempt to get a postgres connection based on database.yaml, or exit.
|
||||
"""
|
||||
try:
|
||||
database_yaml = yaml.load(open("database.yaml"))
|
||||
database_yaml = yaml.safe_load(open("database.yaml"))
|
||||
except FileNotFoundError:
|
||||
parser.error("Could not find database.yaml")
|
||||
except yaml.YAMLError as e:
|
||||
|
|
Loading…
Reference in a new issue