From d0a0452df6352330aed74f435cace4edb94bc7e7 Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Wed, 31 Mar 2021 22:15:38 +0200 Subject: [PATCH] fix: close the geocoder --- flaskr/geocoder.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) 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