From 095aff2c0916f43cd83967e6774c30f5abe59d4d Mon Sep 17 00:00:00 2001 From: Robbe Haesendonck Date: Thu, 23 Nov 2023 15:59:01 +0100 Subject: [PATCH] Removed unnecessary check for --prepare-database flag --- nominatim/clicmd/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominatim/clicmd/setup.py b/nominatim/clicmd/setup.py index ca3bf40ed..3d212ff98 100644 --- a/nominatim/clicmd/setup.py +++ b/nominatim/clicmd/setup.py @@ -101,7 +101,7 @@ def run(self, args: NominatimArgs) -> int: # pylint: disable=too-many-statements if args.continue_at in (None, 'import-from-file'): files = args.get_osm_file_list() - if not files and not args.prepare_database: + if not files: raise UsageError("No input files (use --osm-file).") if args.continue_at in ('import-from-file', None):