Commit e93def59ba52411e4950d4567ebb9a4c2bbe4e02
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 | ... | ... |