aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-06-07 14:25:57 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-06-07 15:50:56 +0200
commit31660931dd1fcb0742ecdd2c454008053fccaacc (patch)
tree62a4266ea6e0c14f8c91d4b6cba1d385b49c66d0 /wee_slack.py
parentdb88dcb49815d0f8de2061dc56981d7071408ba9 (diff)
downloadwee-slack-31660931dd1fcb0742ecdd2c454008053fccaacc.tar.gz
Remove try/except in buffer_prnt
There shouldn't be any exceptions here. If there are, we shouldn't catch them, so we can notice and fix them.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7aae604..75a8ed1 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1941,16 +1941,13 @@ class SlackChannel(SlackChannelCommon):
self_msg = tag_nick == self.team.nick
tags = tag(ts, tagset, user=tag_nick, self_msg=self_msg, backlog=backlog, no_log=no_log, extra_tags=extra_tags)
- try:
- if (config.unhide_buffers_with_activity
- and not self.is_visible() and not self.muted):
- w.buffer_set(self.channel_buffer, "hidden", "0")
-
- w.prnt_date_tags(self.channel_buffer, ts.major, tags, data)
- if backlog or self_msg:
- self.mark_read(ts, update_remote=False, force=True)
- except:
- dbg("Problem processing buffer_prnt")
+ if (config.unhide_buffers_with_activity
+ and not self.is_visible() and not self.muted):
+ w.buffer_set(self.channel_buffer, "hidden", "0")
+
+ w.prnt_date_tags(self.channel_buffer, ts.major, tags, data)
+ if backlog or self_msg:
+ self.mark_read(ts, update_remote=False, force=True)
def send_message(self, message, subtype=None, request_dict_ext={}):
message = linkify_text(message, self.team)