From 9c7d947fd102bbe2f0db7cbc68c2b951e6ae78aa Mon Sep 17 00:00:00 2001 From: Robbe Haesendonck Date: Wed, 27 Sep 2023 10:50:40 +0200 Subject: [PATCH] Updated check to see if osm_file is set --- nominatim/clicmd/setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nominatim/clicmd/setup.py b/nominatim/clicmd/setup.py index 754f3b2f..16c152a2 100644 --- a/nominatim/clicmd/setup.py +++ b/nominatim/clicmd/setup.py @@ -80,8 +80,7 @@ class SetupAll: country_info.setup_country_config(args.config) - # Check if osm-file or continue_at is set, if both are set, or none are set, throw an error - if args.osm_file is None and args.continue_at is None: + if args.osm_file is None and args.continue_at is None and not args.prepare_database: raise UsageError("No input files (use --osm-file).") if args.osm_file is not None and args.continue_at not in ('import-from-file', None): -- 2.39.5