From 460cc18cc7803dd857754bff0462092ca1fe7f39 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Tue, 28 May 2013 16:01:12 +0200 Subject: Protect agains orphan tags --- hyperkitty/views/list.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hyperkitty/views/list.py') diff --git a/hyperkitty/views/list.py b/hyperkitty/views/list.py index 8399e4f..a58bdbb 100644 --- a/hyperkitty/views/list.py +++ b/hyperkitty/views/list.py @@ -275,7 +275,9 @@ def search_tag(request, mlist_fqdn, tag): threads = [] for t in tags: - threads.append(store.get_thread(mlist_fqdn, t.threadid)) + thread = store.get_thread(mlist_fqdn, t.threadid) + if thread is not None: + threads.append(thread) extra_context = { "tag": tag, -- cgit