From 1bc69cff8e8db0e4d9e1bb2df58dca91bfe1c9fc Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Wed, 31 Mar 2021 21:22:53 +0200 Subject: [PATCH] fix: use HTTP, not HTTPS, or certifs fail --- flaskr/geocoder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flaskr/geocoder.py b/flaskr/geocoder.py index bc26504..c798a3d 100644 --- a/flaskr/geocoder.py +++ b/flaskr/geocoder.py @@ -1,14 +1,15 @@ -import geopy import shelve import time +import geopy + from flaskr.core import get_path class CachedGeocoder: def __init__(self, source="Nominatim", geocache="geocache.db"): - self.geocoder = getattr(geopy.geocoders, source)() + self.geocoder = getattr(geopy.geocoders, source)(scheme='http') self.cache = shelve.open(get_path(geocache), writeback=True) # self.timestamp = time.time() + 1.5 -- libgit2 0.21.2