mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 13:54:07 +00:00
remove default parameter for namedtuple
This is only available in Python 3.7.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user