diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-04 15:09:39 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-04 15:09:39 -0800 |
commit | 2d1c7550c39170cf68417c0ef495f2e2cac43e49 (patch) | |
tree | e884d351953cf32398b32dc55a444522748d3f2a | |
parent | 2cf781d4bea952b2b0d3d67e3be3bc29f5239af9 (diff) | |
download | wee-slack-2d1c7550c39170cf68417c0ef495f2e2cac43e49.tar.gz |
handle case
-rw-r--r-- | wee_slack.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index 5353ed3..abbfa09 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -526,8 +526,12 @@ def typing_bar_item_cb(data, current_buffer, args): # first look for people typing in this channel if current_channel: - if current_channel.is_someone_typing(): - typers += current_channel.get_typing_list() + # this try is mostly becuase server buffers don't implement is_someone_typing + try: + if current_channel.is_someone_typing(): + typers += current_channel.get_typing_list() + except: + pass # here is where we notify you that someone is typing in DM # regardless of which buffer you are in currently |