LPgenerator / mattermost_bot

MatterBot - A chat bot for MatterMost (http://www.mattermost.org).
MIT License
211 stars 60 forks source link

self.websocket.ping() unhandled exception #44

Open d0hnuts opened 7 years ago

d0hnuts commented 7 years ago

`Unhandled exception in thread started by <bound method Bot._keep_active of <mattermost_bot.bot.Bot object at 0x7f8ec067f588>> Traceback (most recent call last):   File "/usr/local/lib/python3.5/dist-packages/mattermost_bot/bot.py", line 43, in _keep_active     self._client.ping()

  File "/usr/local/lib/python3.5/dist-packages/mattermost_bot/mattermost.py", line 215, in ping     self.websocket.ping()   File "/usr/lib/python3/dist-packages/websocket/_core.py", line 280, in ping     self.send(payload, ABNF.OPCODE_PING)   File "/usr/lib/python3/dist-packages/websocket/_core.py", line 239, in send     return self.send_frame(frame)   File "/usr/lib/python3/dist-packages/websocket/_core.py", line 264, in send_frame     l = self._send(data)   File "/usr/lib/python3/dist-packages/websocket/_core.py", line 425, in _send     return send(self.sock, data)   File "/usr/lib/python3/dist-packages/websocket/_socket.py", line 109, in send     raise WebSocketConnectionClosedException("socket is already closed.") websocket._exceptions.WebSocketConnectionClosedException: socket is already closed.`

On both servers we get this filling up our logs, for now we catch it but thought you should know.