X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6812f397afd883bd8fb9605bc86251b105cccc34..cc141bf1a551368101474cfac02a231719224710:/nominatim/config.py diff --git a/nominatim/config.py b/nominatim/config.py index 72aaf0bd..a8436440 100644 --- a/nominatim/config.py +++ b/nominatim/config.py @@ -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):