mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 13:14:52 +00:00
Revert "Make Connection.send() raise the actual exception"
This reverts commit ed2db45a03.
This commit is contained in:
parent
22f2b1dd99
commit
84b0e15e2b
1 changed files with 4 additions and 1 deletions
|
|
@ -77,7 +77,10 @@ class Connection:
|
|||
log.info("Disconnected")
|
||||
|
||||
async def send(self, data: bytes):
|
||||
await self.protocol.send(data)
|
||||
try:
|
||||
await self.protocol.send(data)
|
||||
except Exception:
|
||||
raise OSError
|
||||
|
||||
async def recv(self) -> Optional[bytes]:
|
||||
return await self.protocol.recv()
|
||||
|
|
|
|||
Loading…
Reference in a new issue