зеркало из https://github.com/mozilla/MozDef.git
Specifically reconnect in slackbot exception
This commit is contained in:
Родитель
858bbcf5ff
Коммит
65f8bdbfc3
|
@ -104,6 +104,7 @@ class SlackBot():
|
|||
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):
|
||||
|
|
Загрузка…
Ссылка в новой задаче