From eb2b0dceb49e1c02b1e117c4d636d645ee273623 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 9 Nov 2023 14:38:09 -0500 Subject: [PATCH] Another instance of psycopg2. --- synapse/_scripts/synapse_port_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/_scripts/synapse_port_db.py b/synapse/_scripts/synapse_port_db.py index ef8590db65..8364ac8bc9 100755 --- a/synapse/_scripts/synapse_port_db.py +++ b/synapse/_scripts/synapse_port_db.py @@ -1391,7 +1391,7 @@ def main() -> None: if "name" not in postgres_config: sys.stderr.write("Malformed database config: no 'name'\n") sys.exit(2) - if postgres_config["name"] != "psycopg2": + if postgres_config["name"] not in ("psycopg", "psycopg2"): sys.stderr.write("Database must use the 'psycopg2' connector.\n") sys.exit(3)