Author: damoxc
Revision: 5404
Log:
fix bug in get_hosts if host[x:y] is not a list
Diff:
Modified: trunk/deluge/ui/web/json_api.py
===================================================================
--- trunk/deluge/ui/web/json_api.py 2009-06-23 09:37:28 UTC (rev 5403)
+++ trunk/deluge/ui/web/json_api.py 2009-06-23 10:02:22 UTC (rev 5404)
@@ -501,7 +501,7 @@
"""
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---