aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Kelly <bk@ancilla.ca>2018-01-20 13:38:50 -0500
committerGitHub <noreply@github.com>2018-01-20 13:38:50 -0500
commit3c8f78ab74f6523fc66c76fad386a6492126ea2a (patch)
tree9d30c03bf458fcfe648df9796e7a95ca028955f3
parent9752c469fc4f6fa96104591b989782e618368155 (diff)
parentc665841d85f2e71654e7abb75fdc17ed205c76b7 (diff)
downloadwee-slack-3c8f78ab74f6523fc66c76fad386a6492126ea2a.tar.gz
Merge pull request #495 from ToxicFrog/toxicfrog/sslwantread
Suppress SSLWantReadError errors
-rw-r--r--wee_slack.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index ccd5e84..d131811 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -340,6 +340,9 @@ class EventRouter(object):
# TODO: handle reconnect here
self.teams[team_hash].set_disconnected()
return w.WEECHAT_RC_OK
+ except ssl.SSLWantReadError:
+ # Expected to happen occasionally on SSL websockets.
+ return w.WEECHAT_RC_OK
except Exception:
dbg("socket issue: {}\n".format(traceback.format_exc()))
return w.WEECHAT_RC_OK