From 831ac110a8e0e98455dfa38551d80006f01f4568 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 10 Dec 2008 22:28:11 +0000 Subject: [PATCH] Change display of hosts and catch protocolerrors when testing hosts status --- deluge/ui/gtkui/connectionmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/ui/gtkui/connectionmanager.py b/deluge/ui/gtkui/connectionmanager.py index 2fb24da37..41f592c15 100644 --- a/deluge/ui/gtkui/connectionmanager.py +++ b/deluge/ui/gtkui/connectionmanager.py @@ -74,7 +74,7 @@ def cell_render_host(column, cell, model, row, data): host = "http://" + host u = urlparse.urlsplit(host) if u.username: - text = u.username + ":*@" + u.hostname + ":" + str(u.port) + text = u.username + "@" + u.hostname + ":" + str(u.port) else: text = u.hostname + ":" + str(u.port) @@ -374,7 +374,7 @@ class ConnectionManager(component.Component): else: host = xmlrpclib.ServerProxy(uri) host.ping() - except socket.error: + except Exception: online = False del host