summaryrefslogtreecommitdiffstats
path: root/fish_show.py
diff options
context:
space:
mode:
Diffstat (limited to 'fish_show.py')
-rw-r--r--fish_show.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fish_show.py b/fish_show.py
index 2f4716b..6abf3bc 100644
--- a/fish_show.py
+++ b/fish_show.py
@@ -109,7 +109,8 @@ class FishShow(Show):
event = self.recv_event()
if event and event[0] == 'spawn':
new_fish = Fish.by_type(event[1]['type'])
- self.fishes.add(new_fish)
+ if new_fish:
+ self.fishes.add(new_fish)
for col in self.lights:
for light in col: