From 527d4b19be70d22ab610e8edb5d54adbc9bab3f0 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Mon, 28 Jan 2019 23:48:52 -0600 Subject: [PATCH] Some may not exist, assume they're off --- cogs/picarto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/picarto.py b/cogs/picarto.py index b12f8a4..2e02e53 100644 --- a/cogs/picarto.py +++ b/cogs/picarto.py @@ -100,7 +100,7 @@ WHERE gone_online = [ self.channel_info.get(name) for name in result["followed_picarto_channels"] - if self.channel_info.get(name)["status"] == "on" + if self.channel_info.get(name, {}).get("status", "off") == "on" ] # If they've gone online, produce the embed for them and send it if gone_online: