1
0
Fork 0
mirror of synced 2024-05-03 04:02:28 +12:00

Some may not exist, assume they're off

This commit is contained in:
phxntxm 2019-01-28 23:48:52 -06:00
parent 59e42d8182
commit 527d4b19be

View file

@ -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: