X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4b32cbe518949a4bbc40a8df59e696500bd1d5cf..2351f363155238216a78f986a7f4ebed1bc860ab:/nominatim/tools/check_database.py?ds=sidebyside diff --git a/nominatim/tools/check_database.py b/nominatim/tools/check_database.py index 7b8da200..d8ab08cc 100644 --- a/nominatim/tools/check_database.py +++ b/nominatim/tools/check_database.py @@ -60,7 +60,7 @@ def check_database(config): """ Run a number of checks on the database and return the status. """ try: - conn = connect(config.get_libpq_dsn()) + conn = connect(config.get_libpq_dsn()).connection except UsageError as err: conn = _BadConnection(str(err))