From af621947d938913d0b24a4fad40d0d6bcaa4c989 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 7 Oct 2018 12:34:03 +0200 Subject: [PATCH] minor cleanup --- lib/location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/location.py b/lib/location.py index 5649ec1..23f7ba5 100644 --- a/lib/location.py +++ b/lib/location.py @@ -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):