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 c12670a commit 0536899Copy full SHA for 0536899
discord/gateway.py
@@ -603,13 +603,11 @@ async def poll_event(self):
603
await self.received_message(msg.data)
604
elif msg.type is aiohttp.WSMsgType.BINARY:
605
606
- elif msg.type is aiohttp.WSMsgType.ERROR:
607
- _log.debug("Received %s", msg)
608
- raise msg.data
609
elif msg.type in (
610
aiohttp.WSMsgType.CLOSED,
611
aiohttp.WSMsgType.CLOSING,
612
aiohttp.WSMsgType.CLOSE,
+ aiohttp.WSMsgType.ERROR,
613
):
614
_log.debug("Received %s", msg)
615
raise WebSocketClosure
0 commit comments