mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
fix bug in get_hosts if host[x:y] is not a list
This commit is contained in:
parent
76d3c2567e
commit
a29904fefd
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ class WebApi(JSONComponent):
|
||||||
"""
|
"""
|
||||||
log.debug("get_hosts called")
|
log.debug("get_hosts called")
|
||||||
d = Deferred()
|
d = Deferred()
|
||||||
d.callback([(host[HOSTS_ID:HOSTS_PORT+1] + [_("Offline"),]) for host in self.host_list["hosts"]])
|
d.callback([(tuple(host[HOSTS_ID:HOSTS_PORT+1]) + (_("Offline"),)) for host in self.host_list["hosts"]])
|
||||||
return d
|
return d
|
||||||
|
|
||||||
@export
|
@export
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue