From 52d497199bb487615d3821747727296ecb36458b Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Wed, 12 Feb 2020 07:54:45 +0100 Subject: [PATCH] Improve the geocoder's resilience. --- flaskr/geocoder.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/flaskr/geocoder.py b/flaskr/geocoder.py index b315e01..92b31a2 100644 --- a/flaskr/geocoder.py +++ b/flaskr/geocoder.py @@ -21,3 +21,6 @@ class CachedGeocoder: addressdetails=True, # only works with Nominatim /!. ) return self.cache[address] + + def close(self): + self.cache.close() -- libgit2 0.21.2