mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Fix exception when trackers are disabled from the sidebar
This commit is contained in:
parent
9324134d8f
commit
b883ffc474
1 changed files with 2 additions and 1 deletions
|
@ -196,7 +196,8 @@ class FilterManager(component.Component):
|
||||||
value = status[field]
|
value = status[field]
|
||||||
items[field][value] = items[field].get(value, 0) + 1
|
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:
|
if "state" in tree_keys and not show_zero_hits:
|
||||||
self._hide_state_items(items["state"])
|
self._hide_state_items(items["state"])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue