X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3ee8d9fa75011a5e259c3b58fce671b4ff0c35fc..15b590679063601512f7544d90b9fcef54cc08fd:/nominatim/clicmd/transition.py diff --git a/nominatim/clicmd/transition.py b/nominatim/clicmd/transition.py index de4e16ca..1d78062e 100644 --- a/nominatim/clicmd/transition.py +++ b/nominatim/clicmd/transition.py @@ -59,12 +59,12 @@ class AdminTransition: if args.setup_db: LOG.warning('Setup DB') - mpath = database_import.install_module(args.module_dir, args.project_dir, - args.config.DATABASE_MODULE_PATH) with connect(args.config.get_libpq_dsn()) as conn: database_import.setup_extensions(conn) - database_import.check_module_dir_path(conn, mpath) + database_import.install_module(args.module_dir, args.project_dir, + args.config.DATABASE_MODULE_PATH, + conn=conn) database_import.import_base_data(args.config.get_libpq_dsn(), args.data_dir, args.no_partitions) @@ -88,7 +88,7 @@ class AdminTransition: with connect(args.config.get_libpq_dsn()) as conn: try: status.set_status(conn, status.compute_database_date(conn)) - except Exception as exc: # pylint: disable=bare-except + except Exception as exc: # pylint: disable=broad-except LOG.error('Cannot determine date of database: %s', exc) if args.index: