aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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