Gjum / gagar

Standalone graphical agar.io Python client/bot using GTK and agarnet
GNU General Public License v3.0
21 stars 11 forks source link

Exception encountered #15

Closed ThePaladinsForge closed 8 years ago

ThePaladinsForge commented 8 years ago
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 8 years ago

fixed in 607848e69c2dffc980d1eab0ff43c38d88878867

Gjum commented 8 years ago

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