Some may not exist, assume they're off
This commit is contained in:
parent
59e42d8182
commit
527d4b19be
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue