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: