Skip to content

Commit

Permalink
try to avoid crash with discord plugin during long running jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
blawar committed Feb 6, 2024
1 parent 5650602 commit e9795e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/discord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
async def _send(channelId, msg = None, embed = None):
global channels

if channelId not in channels:
if channelId not in channels or channels[channelId] is None:
channels[channelId] = client.get_channel(int(channelId))

if embed is not None:
Expand Down

0 comments on commit e9795e2

Please sign in to comment.