From a29904fefdeda1c8b83b28bcee69a93e97c996ce Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 23 Jun 2009 10:02:22 +0000 Subject: [PATCH] fix bug in get_hosts if host[x:y] is not a list --- deluge/ui/web/json_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index e289ac830..efe8ac195 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -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