Commit 3b3b818e482457a846c567e13acf2006352e2423
1 parent
5e63d13d
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 | ... | ... |