]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/tokenizer/icu_tokenizer.py
fix linting issue
[nominatim.git] / nominatim / tokenizer / icu_tokenizer.py
index 28184f6af13ee10c55cd928734550270d45519bd..df1387e24b2caef41a921c27bf2f8ac604898562 100644 (file)
@@ -624,7 +624,7 @@ class LegacyICUNameAnalyzer(AbstractAnalyzer):
         if postcode not in self._cache.postcodes:
             term = self._search_normalized(postcode_name)
             if not term:
         if postcode not in self._cache.postcodes:
             term = self._search_normalized(postcode_name)
             if not term:
-                return
+                return None
 
             variants = {term}
             if analyzer is not None and variant_base is not None:
 
             variants = {term}
             if analyzer is not None and variant_base is not None: