From 30e5ff144d20008f1f7f93384f06d254f2e1e1d3 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 13 Sep 2015 16:04:46 +0200 Subject: updated to most recent agarnet --- agarnet | 2 +- subscriber.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/agarnet b/agarnet index accb52e..fcb201a 160000 --- a/agarnet +++ b/agarnet @@ -1 +1 @@ -Subproject commit accb52eb77cd92ac80737849cbbb765c72d0c962 +Subproject commit fcb201a3dc6bd867caacf94bb1e31a8c9f3b43fe 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 -- cgit v1.2.3