From 72d3b0a5498906d3e7d08b299e4aae8f52f4cc1a Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 9 Jun 2009 21:44:24 +0000 Subject: [PATCH] Fix exception when tracker column is not enabled --- deluge/ui/tracker_icons.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/tracker_icons.py b/deluge/ui/tracker_icons.py index 1e5d7f04a..3469bf194 100644 --- a/deluge/ui/tracker_icons.py +++ b/deluge/ui/tracker_icons.py @@ -175,6 +175,9 @@ class TrackerIcons(component.Component): """ returns None if the icon is not fetched(yet) or not fond. """ + if not tracker_host: + return None + if tracker_host in self.images: return self.images[tracker_host] else: