diff --git a/flaskr/geocoder.py b/flaskr/geocoder.py index 64f1fe4..bcce28c 100644 --- a/flaskr/geocoder.py +++ b/flaskr/geocoder.py @@ -32,5 +32,8 @@ class CachedGeocoder: ) return self.cache[address] + def __del__(self): + self.close() + def close(self): self.cache.close() -- libgit2 0.21.2