From 67b3abc248395ae54c44c59d671d1c0595b7e657 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sun, 29 Mar 2009 12:49:18 +0000 Subject: [PATCH] Oops, correct ip lookup --- Src/network-broker/network-broker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/network-broker/network-broker b/Src/network-broker/network-broker index 8d675fd..ade1760 100755 --- a/Src/network-broker/network-broker +++ b/Src/network-broker/network-broker @@ -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: