diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-07-21 23:15:42 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-07-21 23:15:42 -0700 |
commit | 08798676ef013a5afec452ed85db6917e94cbdb4 (patch) | |
tree | e1d3acd06165162e462684905a8179927689c403 /wee_slack.py | |
parent | cdf5521d0055ee9402a565ff83086db5e0252e48 (diff) | |
download | wee-slack-08798676ef013a5afec452ed85db6917e94cbdb4.tar.gz |
wrap this function - don't care if it fails
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py index ed57e84..e0220e2 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1792,10 +1792,13 @@ def stop_talking_to_slack(): return w.WEECHAT_RC_OK def scrolled_cb(signal, sig_type, data): - if w.window_get_integer(data, "scrolling") == 1: - channels.find(w.current_buffer()).set_scrolling() - else: - channels.find(w.current_buffer()).unset_scrolling() + try: + if w.window_get_integer(data, "scrolling") == 1: + channels.find(w.current_buffer()).set_scrolling() + else: + channels.find(w.current_buffer()).unset_scrolling() + except: + pass return w.WEECHAT_RC_OK # END Utility Methods |