diff options
author | Florian Jung <flo@windfisch.org> | 2015-09-13 16:04:46 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-09-13 16:04:46 +0200 |
commit | 30e5ff144d20008f1f7f93384f06d254f2e1e1d3 (patch) | |
tree | e0f1c7e4c80adee97dc1af71de0bb5d0148f78a5 /subscriber.py | |
parent | 264117a76108ddc2e122f99be4c6155727d86c80 (diff) |
updated to most recent agarnet
Diffstat (limited to 'subscriber.py')
-rw-r--r-- | subscriber.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/subscriber.py b/subscriber.py index b89a6a9..54c03cc 100644 --- a/subscriber.py +++ b/subscriber.py @@ -105,7 +105,10 @@ class EnhancingSubscriber(DummySubscriber): if eater_id not in self.victims: self.victims[eater_id] = [] - self.victims[eater_id] += [(self.c.world.cells[eaten_id], self.time)] + try: + self.victims[eater_id] += [(self.c.world.cells[eaten_id], self.time)] + except KeyError: + pass def on_world_update_post(self): self.c.world.time = self.time |