mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
parent
5eb2f30405
commit
163a86c4a0
@ -624,8 +624,8 @@ class DiscordWebSocket:
|
||||
elif msg.type is aiohttp.WSMsgType.BINARY:
|
||||
await self.received_message(msg.data)
|
||||
elif msg.type is aiohttp.WSMsgType.ERROR:
|
||||
_log.debug('Received %s', msg)
|
||||
raise msg.data
|
||||
_log.debug('Received error %s', msg)
|
||||
raise WebSocketClosure
|
||||
elif msg.type in (aiohttp.WSMsgType.CLOSED, aiohttp.WSMsgType.CLOSING, aiohttp.WSMsgType.CLOSE):
|
||||
_log.debug('Received %s', msg)
|
||||
raise WebSocketClosure
|
||||
|
Loading…
x
Reference in New Issue
Block a user