Enable ipcache writes from geoip lookup

gregdan3/master
Gregory Danielson 4 years ago
parent ef477822ae
commit c65614d230
No known key found for this signature in database
GPG Key ID: 88D4EF22F6C14CA7

@ -168,8 +168,8 @@ def geoip(ip_addr):
location = response.city.name, response.subdivisions.name, response.country.name
except geoip2.errors.AddressNotFoundError:
location = None, None, None
region = None
city = None
if location:
ipcachewrite(ip_addr, location)
return location
def workaround(city, region, country):

Loading…
Cancel
Save