6526: Check for invalid handle

svn: r21653
This commit is contained in:
Nick Hall 2013-03-15 16:17:58 +00:00
parent 29292a404a
commit 68158b3859

View File

@ -823,7 +823,8 @@ class MonitoredTagList(object):
self.tag_list = []
for handle in get_list():
tag = self.db.get_tag_from_handle(handle)
self.tag_list.append((handle, tag.get_name()))
if tag:
self.tag_list.append((handle, tag.get_name()))
self.all_tags = []
for tag in self.db.iter_tags():