summaryrefslogtreecommitdiff
path: root/alot/buffers.py
diff options
context:
space:
mode:
authorbjoernb <post@bjoern.homelinux.org>2012-12-14 15:50:40 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2013-01-15 11:29:12 +0000
commitcc6b9355cc2b9175b37c334dea39390170978566 (patch)
treeb4f1984f2a118b3f92972a44b98dca923948abca /alot/buffers.py
parent389b1a22839faf8d08a5d9ef139e3f3d4c407956 (diff)
deliver an empty ListBox[] on error
Diffstat (limited to 'alot/buffers.py')
-rw-r--r--alot/buffers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/buffers.py b/alot/buffers.py
index d11e8ceb..555268e1 100644
--- a/alot/buffers.py
+++ b/alot/buffers.py
@@ -238,7 +238,7 @@ class SearchBuffer(Buffer):
except NotmuchError:
self.ui.notify('malformed query string: %s' % self.querystring,
'error')
- self.listbox = urwid.ListBox(self.threadlist)
+ self.listbox = urwid.ListBox([])
self.body = self.listbox
return