diff options
author | Ryan Huber <rhuber@gmail.com> | 2016-03-11 15:59:24 +0000 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2016-03-11 15:59:24 +0000 |
commit | e9241b60d6b269e93e22bd6c518fcaad653beffb (patch) | |
tree | a4a5681d130cde1ff731a15aea3ee7065dd2aaa7 /wee_slack.py | |
parent | e81bb4e40c52cc7eb2d5fe5d827d8a60319bc729 (diff) | |
parent | 35b8d5fbe24548b2de9f6700e9849a47129b530b (diff) | |
download | wee-slack-e9241b60d6b269e93e22bd6c518fcaad653beffb.tar.gz |
Merge pull request #178 from trygveaa/fix/dont-call-buffer-set-without-buffer
Don't call buffer_set in im_marked if buffer is None
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index ea335ba..2152204 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1492,7 +1492,8 @@ def process_im_open(message_json): def process_im_marked(message_json): channel = channels.find(message_json["channel"]) channel.mark_read(False) - w.buffer_set(channel.channel_buffer, "hotlist", "-1") + if channel.channel_buffer is not None: + w.buffer_set(channel.channel_buffer, "hotlist", "-1") def process_im_created(message_json): |