aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b5210b9..a3d69c5 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -244,7 +244,8 @@ class SlackServer(object):
self.ws_hook = w.hook_fd(self.ws.sock._sock.fileno(), 1, 0, 0, "slack_websocket_cb", self.identifier)
self.ws.sock.setblocking(0)
return True
- except:
+ except Exception as e:
+ print("websocket connection error: {}".format(e))
return False
def create_slack_mappings(self, data):