X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8bcdba1a14035fa9c4d79fc3557f98dee79df1ba..18800a1a82f29d6d1dda177dcd60715b2c060fb2:/nominatim/tools/check_database.py diff --git a/nominatim/tools/check_database.py b/nominatim/tools/check_database.py index 14a8f0cb..7ac31271 100644 --- a/nominatim/tools/check_database.py +++ b/nominatim/tools/check_database.py @@ -194,6 +194,9 @@ def check_tokenizer(_, config): def check_existance_wikipedia(conn, _): """ Checking for wikipedia/wikidata data """ + if not conn.table_exists('search_name'): + return CheckState.NOT_APPLICABLE + with conn.cursor() as cur: cnt = cur.scalar('SELECT count(*) FROM wikipedia_article')