Visitar URL original
Display a more meaningful error message · Python-Repository-Hub/pyrogram@9279b67 · GitHub
Skip to content

Commit 9279b67

Browse files
committed
Display a more meaningful error message
1 parent 84b0e15 commit 9279b67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pyrogram/connection/connection.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ def close(self):
7979
async def send(self, data: bytes):
8080
try:
8181
await self.protocol.send(data)
82-
except Exception:
83-
raise OSError
82+
except Exception as e:
83+
raise OSError(e)
8484

8585
async def recv(self) -> Optional[bytes]:
8686
return await self.protocol.recv()

0 commit comments

Comments
 (0)