diff options
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py index 7299857..145a008 100644 --- a/slack/slack_workspace.py +++ b/slack/slack_workspace.py @@ -549,7 +549,8 @@ class SlackWorkspace: or data["type"] == "channel_left" or data["type"] == "group_left" ): - weechat.buffer_close(channel.buffer_pointer) + if channel.buffer_pointer is not None: + weechat.buffer_close(channel.buffer_pointer) elif data["type"] == "reaction_added" and data["item"]["type"] == "message": await channel.reaction_add( SlackTs(data["item"]["ts"]), data["reaction"], data["user"] |