X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b0067a0345c2ab7793614925d6150141ef5f18f0..0fb4fe8e4df63fd09704ca0752ed4248dab11ecd:/nominatim/config.py diff --git a/nominatim/config.py b/nominatim/config.py index 3344a425..6bfc6076 100644 --- a/nominatim/config.py +++ b/nominatim/config.py @@ -83,7 +83,7 @@ class Configuration: """ Set paths to library functions and data. """ for key, value in kwargs.items(): - setattr(self.lib_dir, key, Path(value)) + setattr(self.lib_dir, key, None if value is None else Path(value)) def __getattr__(self, name: str) -> str: