X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b4fe7d7c7df335ce62eb8ec626428b45b38235a6..001b2aa9f9e3476d3b70a1a2a408ea4f0a7786fc:/nominatim/config.py diff --git a/nominatim/config.py b/nominatim/config.py index 1db56493..a8436440 100644 --- a/nominatim/config.py +++ b/nominatim/config.py @@ -39,7 +39,7 @@ class Configuration: self._config['NOMINATIM_ADDRESS_LEVEL_CONFIG'] = \ str(config_dir / 'address-levels.json') - class _LibDirs: # pylint: disable=too-few-public-methods + class _LibDirs: pass self.lib_dir = _LibDirs() @@ -68,9 +68,9 @@ class Configuration: """ try: return int(self.__getattr__(name)) - except ValueError: + except ValueError as exp: LOG.fatal("Invalid setting NOMINATIM_%s. Needs to be a number.", name) - raise UsageError("Configuration error.") + raise UsageError("Configuration error.") from exp def get_libpq_dsn(self):