Skip to content

Commit

Permalink
Removed unnecessary check for --prepare-database flag
Browse files Browse the repository at this point in the history
  • Loading branch information
robbe-haesendonck authored and lonvia committed Dec 7, 2023
1 parent 5f7cc91 commit 4f5f5ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nominatim/clicmd/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 4f5f5ea

Please sign in to comment.