GITLAB
carbon
/
travel-carbon-footprint.irap.omp.eu
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Issues
10
Merge Requests
0
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
d0a0452df6352330aed74f435cace4edb94bc7e7
Authored by
Antoine Goutenoir
2021-03-31 22:15:38 +0200
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
Inline
Side-by-side
flaskr/geocoder.py
Wrap text
Diff comments
View file @
d0a0452
...
...
@@ -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()
...
...