Commit 3be97de0c853147e92cbc8668068d153bcfffa82

Authored by Antoine Goutenoir
1 parent cb4d253f
Exists in master

fix: close the geocoder

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
flaskr/geocoder.py
... ... @@ -32,5 +32,8 @@ class CachedGeocoder:
32 32 )
33 33 return self.cache[address]
34 34  
  35 + def __del__(self):
  36 + self.close()
  37 +
35 38 def close(self):
36 39 self.cache.close()
... ...