Another instance of psycopg2.

clokep/psycopg3
Patrick Cloke 2023-11-09 14:38:09 -05:00
parent 626f468155
commit eb2b0dceb4
1 changed files with 1 additions and 1 deletions

View File

@ -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)