aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_workspace.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r--slack/slack_workspace.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/slack_workspace.py b/slack/slack_workspace.py
index d059b04..f6574d9 100644
--- a/slack/slack_workspace.py
+++ b/slack/slack_workspace.py
@@ -302,8 +302,8 @@ class SlackWorkspace:
except ssl.SSLWantReadError:
# No more data to read at this time.
return weechat.WEECHAT_RC_OK
- except (WebSocketConnectionClosedException, socket.error):
- print("lost connection on receive, reconnecting")
+ except (WebSocketConnectionClosedException, socket.error) as e:
+ print("lost connection on receive, reconnecting", e)
run_async(self.reconnect())
return weechat.WEECHAT_RC_OK