diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-05-28 16:01:12 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-05-28 16:01:12 +0200 |
commit | 460cc18cc7803dd857754bff0462092ca1fe7f39 (patch) | |
tree | af6270651d3eee0c2f4b5d5cfa3cfa084f5aa2a3 | |
parent | 9f4ff2e53e78c7fe8243a1f0008c930eb57e57b4 (diff) | |
download | hyperkitty-460cc18cc7803dd857754bff0462092ca1fe7f39.tar.gz hyperkitty-460cc18cc7803dd857754bff0462092ca1fe7f39.tar.xz hyperkitty-460cc18cc7803dd857754bff0462092ca1fe7f39.zip |
Protect agains orphan tags
-rw-r--r-- | hyperkitty/views/list.py | 4 |
1 files changed, 3 insertions, 1 deletions
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, |