Gjum/gagar

Exception encountered

Closed this issue · 2 comments

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/gagar/window.py", line 121, in draw
    self.draw_subscriber.on_draw_cells(c, self)
  File "/usr/local/lib/python3.4/dist-packages/gagar/subscriber.py", line 29, in wrapper
    handler(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/gagar/subscriber.py", line 29, in wrapper
    handler(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/gagar/draw_cells.py", line 47, in on_draw_cells
    split_for = now - self.split_times[cell.cid]
KeyError: -1
Gjum commented

fixed in 607848e

Gjum commented

split_times should really be stored in each cell instance using a custom Cell class