minor cleanup
This commit is contained in:
parent
0782e99d6f
commit
af621947d9
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ def ip2location(ip_addr):
|
||||||
open(cached, 'w').write(location)
|
open(cached, 'w').write(location)
|
||||||
print "ip2location says: %s" % location
|
print "ip2location says: %s" % location
|
||||||
return location
|
return location
|
||||||
except requests.exceptions.ConnectionError as exception:
|
except requests.exceptions.ConnectionError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_location(ip_addr):
|
def get_location(ip_addr):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue