mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-25 02:23:04 +00:00 
			
		
		
		
	| @@ -624,8 +624,8 @@ class DiscordWebSocket: | |||||||
|             elif msg.type is aiohttp.WSMsgType.BINARY: |             elif msg.type is aiohttp.WSMsgType.BINARY: | ||||||
|                 await self.received_message(msg.data) |                 await self.received_message(msg.data) | ||||||
|             elif msg.type is aiohttp.WSMsgType.ERROR: |             elif msg.type is aiohttp.WSMsgType.ERROR: | ||||||
|                 _log.debug('Received %s', msg) |                 _log.debug('Received error %s', msg) | ||||||
|                 raise msg.data |                 raise WebSocketClosure | ||||||
|             elif msg.type in (aiohttp.WSMsgType.CLOSED, aiohttp.WSMsgType.CLOSING, aiohttp.WSMsgType.CLOSE): |             elif msg.type in (aiohttp.WSMsgType.CLOSED, aiohttp.WSMsgType.CLOSING, aiohttp.WSMsgType.CLOSE): | ||||||
|                 _log.debug('Received %s', msg) |                 _log.debug('Received %s', msg) | ||||||
|                 raise WebSocketClosure |                 raise WebSocketClosure | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user