Commit 52d497199bb487615d3821747727296ecb36458b

Authored by Antoine Goutenoir
1 parent a03065f3
Exists in master

Improve the geocoder's resilience.

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
flaskr/geocoder.py
... ... @@ -21,3 +21,6 @@ class CachedGeocoder:
21 21 addressdetails=True, # only works with Nominatim /!.
22 22 )
23 23 return self.cache[address]
  24 +
  25 + def close(self):
  26 + self.cache.close()
... ...