summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-09-13 16:04:52 +0200
committerFlorian Jung <flo@windfisch.org>2015-09-13 16:04:52 +0200
commitdf65f6fbf6a08c767450e488c6863406f3a44ede (patch)
tree4d86d6fa151b0956e910d6d9a4d5ab596afa1caa
parent270d4c5a63f869ef6e87b37cf4584de7c15c4e07 (diff)
parent30e5ff144d20008f1f7f93384f06d254f2e1e1d3 (diff)
Merge branch 'master' into pathfinding
m---------agarnet0
-rw-r--r--subscriber.py5
2 files changed, 4 insertions, 1 deletions
diff --git a/agarnet b/agarnet
-Subproject accb52eb77cd92ac80737849cbbb765c72d0c96
+Subproject fcb201a3dc6bd867caacf94bb1e31a8c9f3b43f
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