Skip to content
Permalink
Browse files

Specifically reconnect in slackbot exception

  • Loading branch information...
pwnbus committed Apr 9, 2019
1 parent 858bbcf commit 65f8bdbfc33276cc876cab6ed223e0f2ebbca6bd
Showing with 1 addition and 0 deletions.
  1. +1 −0 bot/slack/slack_bot.py
@@ -104,6 +104,7 @@ def listen_for_messages(self):
except websocket.WebSocketConnectionClosedException:
logger.info("Received WebSocketConnectionClosedException exception...reconnecting")
time.sleep(3)
self.slack_client.rtm_connect()
time.sleep(1)

def post_thread_message(self, text, channel, thread_ts):

0 comments on commit 65f8bdb

Please sign in to comment.
You can’t perform that action at this time.