diff options
author | Ben Kelly <bk@ancilla.ca> | 2018-01-20 13:38:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 13:38:50 -0500 |
commit | 3c8f78ab74f6523fc66c76fad386a6492126ea2a (patch) | |
tree | 9d30c03bf458fcfe648df9796e7a95ca028955f3 | |
parent | 9752c469fc4f6fa96104591b989782e618368155 (diff) | |
parent | c665841d85f2e71654e7abb75fdc17ed205c76b7 (diff) | |
download | wee-slack-3c8f78ab74f6523fc66c76fad386a6492126ea2a.tar.gz |
Merge pull request #495 from ToxicFrog/toxicfrog/sslwantread
Suppress SSLWantReadError errors
-rw-r--r-- | wee_slack.py | 3 |
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 |