pazz/alot — Issue #368: empty subject?
Author: pazz
Created: 2012-02-27 09:34:45+00:00
State: open
Labels: backend, bug

```
Traceback (most recent call last):
File "/home/pazz/.local/bin/alot", line 20, in
main()
File "/home/pazz/.local/lib/python2.7/site-packages/alot/init.py", line 180, in main
UI(dbman, cmd)
File "/home/pazz/.local/lib/python2.7/site-packages/alot/ui.py", line 101, in __init__
self.mainloop.run()
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/main_loop.py", line 274, in run
self.screen.run_wrapper(self._run)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/raw_display.py", line 237, in run_wrapper
return fn()
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/main_loop.py", line 285, in _run
self.draw_screen()
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/main_loop.py", line 510, in draw_screen
canvas = self._topmost_widget.render(self.screen_size, focus=True)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/widget.py", line 1318, in render
canv = get_delegate(self).render(size, focus=focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/container.py", line 614, in render
focus and self.focus_part == 'body')
File "/home/pazz/.local/lib/python2.7/site-packages/alot/buffers.py", line 25, in render
return self.body.render(size, focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/widget.py", line 132, in cached_render
canv = fn(self, size, focus=focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/listbox.py", line 342, in render
(maxcol, maxrow), focus=focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/listbox.py", line 226, in calculate_visible
self._set_focus_complete( (maxcol, maxrow), focus )
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/listbox.py", line 534, in _set_focus_complete
(maxcol,maxrow), focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/listbox.py", line 504, in _set_focus_first_selectable
(maxcol, maxrow), focus=focus)
File "/home/pazz/.local/lib/python2.7/site-packages/urwid-1.0.1-py2.7-linux-i686.egg/urwid/listbox.py", line 289, in calculate_visible
next, pos = self.body.get_next( pos )
File "/home/pazz/.local/lib/python2.7/site-packages/alot/walker.py", line 28, in get_next
return self._get_at_pos(start_from + 1)
File "/home/pazz/.local/lib/python2.7/site-packages/alot/walker.py", line 50, in _get_at_pos
widget = self._get_next_item()
File "/home/pazz/.local/lib/python2.7/site-packages/alot/walker.py", line 63, in _get_next_item
next_widget = self.containerclass(next_obj, **self.kwargs)
File "/home/pazz/.local/lib/python2.7/site-packages/alot/widgets.py", line 79, in __init__
self.rebuild()
File "/home/pazz/.local/lib/python2.7/site-packages/alot/widgets.py", line 135, in rebuild
subjectstring = subjectstring.replace('\n', ' ')
```