Fix accidental regression of 9bc48b2 in fa46b07
Occured due to difficult to spot difference in git merge when rebasing the lint changes.
This commit is contained in:
parent
9656a21ebe
commit
883ae8fe80
@ -461,7 +461,7 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
|
|||||||
|
|
||||||
async def send_as_json(self, data):
|
async def send_as_json(self, data):
|
||||||
try:
|
try:
|
||||||
await super().send(utils.to_json(data))
|
await self.send(utils.to_json(data))
|
||||||
except websockets.exceptions.ConnectionClosed as exc:
|
except websockets.exceptions.ConnectionClosed as exc:
|
||||||
if not self._can_handle_close(exc.code):
|
if not self._can_handle_close(exc.code):
|
||||||
raise ConnectionClosed(exc, shard_id=self.shard_id) from exc
|
raise ConnectionClosed(exc, shard_id=self.shard_id) from exc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user