Commit e93def59ba52411e4950d4567ebb9a4c2bbe4e02

Authored by Antoine Goutenoir
1 parent 1bc69cff
Exists in master

fix: more TLS shenanigans

Showing 2 changed files with 7 additions and 0 deletions   Show diff stats
flaskr/geocoder.py
1 1 import shelve
  2 +import ssl
2 3 import time
3 4  
  5 +import certifi
4 6 import geopy
  7 +import geopy.geocoders
5 8  
6 9 from flaskr.core import get_path
7 10  
  11 +ctx = ssl.create_default_context(cafile=certifi.where())
  12 +geopy.geocoders.options.default_ssl_context = ctx
  13 +
8 14  
9 15 class CachedGeocoder:
10 16  
... ...
requirements.txt
... ... @@ -24,6 +24,7 @@ Markdown==3.1.1
24 24 numpy==1.18.5
25 25 enum34==1.1.6
26 26 geopy==1.20.0
  27 +certifi==2019.11.28
27 28 python-dotenv==0.10.3
28 29  
29 30 # Force stable werkzeug
... ...