Commit d0a0452df6352330aed74f435cace4edb94bc7e7

Authored by Antoine Goutenoir
1 parent c19aca77
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()
... ...