]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_db/tools/check_database.py
adapt BDD tests for legacy tokenizer + Python frontend
[nominatim.git] / src / nominatim_db / tools / check_database.py
index 946f929138ca6453083d3eabf899a24d025b67ed..7389c9a2c8be49bdf7a43f9984427e5f52f00430 100644 (file)
@@ -81,7 +81,7 @@ def check_database(config: Configuration) -> int:
     """ Run a number of checks on the database and return the status.
     """
     try:
     """ Run a number of checks on the database and return the status.
     """
     try:
-        conn = connect(config.get_libpq_dsn()).connection
+        conn = connect(config.get_libpq_dsn())
     except UsageError as err:
         conn = _BadConnection(str(err)) # type: ignore[assignment]
 
     except UsageError as err:
         conn = _BadConnection(str(err)) # type: ignore[assignment]