]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tools/check_database.py
remove postcodes from countries that don't have them
[nominatim.git] / nominatim / tools / check_database.py
index 14a8f0cb5fa5c22e5746282627d6db1f4342a494..7ac31271568382aedc011e6dc46d8c3b3e8bb57c 100644 (file)
@@ -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')