We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a4731 commit 47876abCopy full SHA for 47876ab
slack/rtm/client.py
@@ -401,6 +401,10 @@ async def _read_messages(self):
401
# True
402
message = await self._websocket.receive(timeout=1)
403
except asyncio.TimeoutError:
404
+ if self._websocket is None:
405
+ # For some reason, the connection unexpectedly doesn't exist here.
406
+ # In the case, this method can do nothing.
407
+ return
408
if not self._websocket.closed:
409
# We didn't receive a message within the timeout interval, but
410
# aiohttp hasn't closed the socket, so ping responses must still be
0 commit comments