Author: andar

Revision: 5306

Log:
        Fix exception when trackers are disabled from the sidebar

Diff:
Modified: trunk/deluge/core/filtermanager.py
===================================================================
--- trunk/deluge/core/filtermanager.py  2009-05-25 06:07:26 UTC (rev 5305)
+++ trunk/deluge/core/filtermanager.py  2009-05-25 22:55:42 UTC (rev 5306)
@@ -196,7 +196,8 @@
                 value = status[field]
                 items[field][value] = items[field].get(value, 0) + 1
 
-        items["tracker_host"]["Error"] = len(tracker_error_filter(torrent_ids, 
("Error",)))
+        if "tracker_host" in items:
+            items["tracker_host"]["Error"] = 
len(tracker_error_filter(torrent_ids, ("Error",)))
 
         if "state" in tree_keys and not show_zero_hits:
             self._hide_state_items(items["state"])



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to