pazz/alot — Issue #349: UnicodeDecodeError: 'utf8' codec can't decode byte 0xf9 in position 27: invalid start byte
Author: jakeogh
Created: 2012-02-22 08:33:23+00:00
State: open

I am encountering a repeatable error with alot 0.2-330-g14b3:

in the default message list view, if I scroll down a bit, I get:

Traceback (most recent call last):
File "/usr/bin/alot", line 20, in
main()
File "/home/default/.local/lib/python2.7/site-packages/alot/init.py", line 183, in main
args['colour-mode'],
File "/home/default/.local/lib/python2.7/site-packages/alot/ui.py", line 108, in __init__
self.mainloop.run()
File "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 273, in run
self.screen.run_wrapper(self._run)
File "/usr/lib64/python2.7/site-packages/urwid/raw_display.py", line 228, in run_wrapper
return fn()
File "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 306, in _run
self.event_loop.run()
File "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 1158, in wrapper
rval = f(*args,**kargs)
File "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 357, in _update
self.process_input(keys)
File "/usr/lib64/python2.7/site-packages/urwid/main_loop.py", line 446, in process_input
k = self._topmost_widget.keypress(self.screen_size, k)
File "/home/default/.local/lib/python2.7/site-packages/alot/ui.py", line 58, in keypress
return self._w.keypress(size, key)
File "/usr/lib64/python2.7/site-packages/urwid/container.py", line 640, in keypress
return self.body.keypress( (maxcol, remaining), key )
File "/home/default/.local/lib/python2.7/site-packages/alot/buffers.py", line 33, in keypress
return self.body.keypress(size, key)
File "/usr/lib64/python2.7/site-packages/urwid/listbox.py", line 775, in keypress
return self._keypress_page_down((maxcol, maxrow))
File "/usr/lib64/python2.7/site-packages/urwid/listbox.py", line 1176, in _keypress_page_down
widget, pos = self.body.get_next(pos)
File "/home/default/.local/lib/python2.7/site-packages/alot/walker.py", line 28, in get_next
return self._get_at_pos(start_from + 1)
File "/home/default/.local/lib/python2.7/site-packages/alot/walker.py", line 50, in _get_at_pos
widget = self._get_next_item()
File "/home/default/.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/default/.local/lib/python2.7/site-packages/alot/widgets.py", line 75, in __init__
self.thread = dbman.get_thread(tid)
File "/home/default/.local/lib/python2.7/site-packages/alot/db.py", line 213, in get_thread
return Thread(self, self._get_notmuch_thread(tid))
File "/home/default/.local/lib/python2.7/site-packages/alot/db.py", line 341, in __init__
self.refresh(thread)
File "/home/default/.local/lib/python2.7/site-packages/alot/db.py", line 349, in refresh
self._authors = thread.get_authors()
File "/usr/lib/python2.7/site-packages/notmuch/thread.py", line 298, in get_authors
return authors.decode('UTF-8')
File "/usr/lib64/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf9 in position 27: invalid start byte