minor cleanup

This commit is contained in:
Igor Chubin 2018-10-07 12:34:03 +02:00
parent 0782e99d6f
commit af621947d9

View file

@ -102,7 +102,7 @@ def ip2location(ip_addr):
open(cached, 'w').write(location)
print "ip2location says: %s" % location
return location
except requests.exceptions.ConnectionError as exception:
except requests.exceptions.ConnectionError:
return None
def get_location(ip_addr):