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