Oops, correct ip lookup

This commit is contained in:
simon.kagstrom 2009-03-29 12:49:18 +00:00
parent a3c862b08a
commit 67b3abc248

View File

@ -180,7 +180,7 @@ class Peer:
# Lookup which country this guy is from
try:
self.country = srv.ip2c.lookup(self.public_ip)[1]
self.country = srv.ip2c.lookup(self.public_ip)
except ValueError, e:
self.country = None
if self.country == None: