]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_db/tools/exec_utils.py
use word_token length when penalizing against postcodes
[nominatim.git] / src / nominatim_db / tools / exec_utils.py
index 7629e2a2b0a15442214230b8b77ebabc7b259c97..2d048bcb7bdfbc502f6178e557a832ffa042acf0 100644 (file)
@@ -2,7 +2,7 @@
 #
 # This file is part of Nominatim. (https://nominatim.org)
 #
-# Copyright (C) 2024 by the Nominatim developer community.
+# Copyright (C) 2025 by the Nominatim developer community.
 # For a full list of authors see the git log.
 """
 Helper functions for executing external programs.
@@ -85,7 +85,7 @@ def _mk_tablespace_options(ttype: str, options: Mapping[str, Any]) -> List[str]:
 
 
 def _find_osm2pgsql_cmd(cmdline: Optional[str]) -> str:
-    if cmdline is not None:
+    if cmdline:
         return cmdline
 
     in_path = shutil.which('osm2pgsql')