mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 10:59:00 +00:00
Change display of hosts and catch protocolerrors when testing hosts status
This commit is contained in:
parent
19196b1363
commit
831ac110a8
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ def cell_render_host(column, cell, model, row, data):
|
||||||
host = "http://" + host
|
host = "http://" + host
|
||||||
u = urlparse.urlsplit(host)
|
u = urlparse.urlsplit(host)
|
||||||
if u.username:
|
if u.username:
|
||||||
text = u.username + ":*@" + u.hostname + ":" + str(u.port)
|
text = u.username + "@" + u.hostname + ":" + str(u.port)
|
||||||
else:
|
else:
|
||||||
text = u.hostname + ":" + str(u.port)
|
text = u.hostname + ":" + str(u.port)
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ class ConnectionManager(component.Component):
|
||||||
else:
|
else:
|
||||||
host = xmlrpclib.ServerProxy(uri)
|
host = xmlrpclib.ServerProxy(uri)
|
||||||
host.ping()
|
host.ping()
|
||||||
except socket.error:
|
except Exception:
|
||||||
online = False
|
online = False
|
||||||
|
|
||||||
del host
|
del host
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue