mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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")
|
||||
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
|
||||
|
||||
@export
|
||||
|
|
Loading…
Add table
Reference in a new issue