Browse Source

fix deserialize_server bug

283
ThomasV 10 years ago
parent
commit
cf0fcac9fa
  1. 5
      lib/network.py

5
lib/network.py

@ -236,7 +236,10 @@ class Network(util.DaemonThread):
else: else:
out = DEFAULT_SERVERS out = DEFAULT_SERVERS
for s in self.recent_servers: for s in self.recent_servers:
host, port, protocol = deserialize_server(s) try:
host, port, protocol = deserialize_server(s)
except:
continue
if host not in out: if host not in out:
out[host] = { protocol:port } out[host] = { protocol:port }
return out return out

Loading…
Cancel
Save