From 3be97de0c853147e92cbc8668068d153bcfffa82 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