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
3be97de0c853147e92cbc8668068d153bcfffa82
Authored by
Antoine Goutenoir
2021-03-31 22:15:38 +0200
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
Inline
Side-by-side
flaskr/geocoder.py
Wrap text
Diff comments
View file @
3be97de
...
...
@@ -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()
...
...