From b8d15bba7ce7ebaa700651c7c0cc7df7e823d11e Mon Sep 17 00:00:00 2001 From: "Wraithan (Chris McDonald)" Date: Mon, 15 Apr 2013 09:14:12 -0700 Subject: [PATCH] Tests should have caught this... --- lib/geoip/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/geoip/__init__.py b/lib/geoip/__init__.py index 8de3398f11..782d4c0a87 100644 --- a/lib/geoip/__init__.py +++ b/lib/geoip/__init__.py @@ -30,10 +30,10 @@ class GeoIP: res = requests.post('{0}/country.json'.format(self.url), timeout=self.timeout, data={'ip': address}) - except request.Timeout: + except requests.Timeout: log.error(('Geodude timed out looking up: {0}' .format(address))) - except request.RequestException as e: + except requests.RequestException as e: log.error('Geodude connection error: {0}'.format(str(e))) if res.status_code == 200: return res.json.get('country_code',