Nic0/tyrs — Issue #121: Error when scrolling down while viewing a thread
Author: alejandrogomez
Created: 2012-01-15 11:46:54+00:00
State: open

Sometimes, when I try to visualize a conversation thread no tweet gets retrieved. I just see the tweet which I've selected to inspect for its previous conversation.

If scroll down in the thread interface the program crashes and I get this traceback:

```
Traceback (most recent call last):
File "/usr/bin/tyrs", line 5, in
pkg_resources.run_script('tyrs==0.6.2', 'tyrs')
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/EGG-INFO/scripts/tyrs", line 16, in
main()
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/tyrs.py", line 66, in main
init_tyrs()
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/tyrs.py", line 71, in init_tyrs
init_interface()
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/tyrs.py", line 88, in init_interface
user_interface = Interface()
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/interface.py", line 49, in __init__
self.main_loop()
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/interface.py", line 62, in main_loop
self.loop.run()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 274, in run
self.screen.run_wrapper(self._run)
File "/usr/lib/python2.7/site-packages/urwid/raw_display.py", line 237, in run_wrapper
return fn()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 307, in _run
self.event_loop.run()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 682, in run
self._loop()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 720, in _loop
self._watch_files[fd]()
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 358, in _update
self.process_input(keys)
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 453, in process_input
something_handled |= bool(self.unhandled_input(k))
File "/usr/lib/python2.7/site-packages/urwid/main_loop.py", line 488, in unhandled_input
return self._unhandled_input(input)
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/keys.py", line 50, in keystroke
self.interface.go_down()
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/interface.py", line 199, in go_down
timeline.go_down()
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/timeline.py", line 153, in go_down
self.timeline.set_focus(pos+1)
File "/usr/lib/python2.7/site-packages/urwid/listbox.py", line 433, in set_focus
self.body.set_focus( position )
File "/usr/lib/python2.7/site-packages/urwid/listbox.py", line 143, in set_focus
self._modified()
File "/usr/lib/python2.7/site-packages/urwid/listbox.py", line 122, in _modified
ListWalker._modified(self)
File "/usr/lib/python2.7/site-packages/urwid/listbox.py", line 42, in _modified
signals.emit_signal(self, "modified")
File "/usr/lib/python2.7/site-packages/urwid/signals.py", line 126, in emit
result |= bool(callback(*args_copy))
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/interface.py", line 117, in lazzy_load
timeline.append_old_statuses(statuses)
File "/usr/lib/python2.7/site-packages/tyrs-0.6.2-py2.7.egg/tyrs/timeline.py", line 105, in append_old_statuses
for status in statuses:
TypeError: 'NoneType' object is not iterable
```