]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/clicmd/setup.py
Added missing return types to functions
[nominatim.git] / nominatim / clicmd / setup.py
index 1a38b3a62b1045ee36ca603bcf1af09c3e99579c..d4b5777ed8525b1f4da07ec59b1db9905d8c2fe9 100644 (file)
@@ -102,7 +102,8 @@ class SetupAll:
                 LOG.warning('Creating database')
                 database_import.setup_database_skeleton(args.config.get_libpq_dsn(),
                                                         rouser=args.config.DATABASE_WEBUSER)
-                return 0
+                if args.prepare_database:
+                    return 0
 
             if args.continue_at in ('import-from-file', None):
                 # Check if the correct plugins are installed