mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
Change display of hosts and catch protocolerrors when testing hosts status
This commit is contained in:
parent
19196b1363
commit
831ac110a8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user