ip2location related minor fixes

pull/249/head
Igor Chubin 6 years ago
parent c597191892
commit 4730dce9a4

@ -96,7 +96,7 @@ def ip2location(ip_addr):
else:
try:
ip2location_response = requests\
.get('http://api.ip2location.com/?ip=%s&key=%s&package=WS10' \
.get('http://api.ip2location.com/?ip=%s&key=%s&package=WS3' \
% (ip_addr, IP2LOCATION_KEY)).text
if ';' in ip2location_response:
open(cached, 'w').write(ip2location_response)

Loading…
Cancel
Save