summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsynapse/_scripts/synapse_port_db.py2
1 files changed, 1 insertions, 1 deletions
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)