diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-10-15 18:28:57 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | a395ba53ac7b6f6376ea8500902a8405d034874e (patch) | |
tree | 047cc7c67deeeeb6d1cb401f3c5dd964f751e73e /slack/slack_workspace.py | |
parent | 6c28494f35d230364336699f0a5ac1be946fc40b (diff) | |
download | wee-slack-a395ba53ac7b6f6376ea8500902a8405d034874e.tar.gz |
Print error when loosing connection, for debugging
Diffstat (limited to 'slack/slack_workspace.py')
-rw-r--r-- | slack/slack_workspace.py | 4 |
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 |