We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 781388a commit c4f9e9fCopy full SHA for c4f9e9f
redis/asyncio/connection.py
@@ -492,8 +492,6 @@ async def read_from_socket(
492
# data was read from the socket and added to the buffer.
493
# return True to indicate that data was read.
494
return True
495
- except asyncio.CancelledError:
496
- raise
497
except (socket.timeout, asyncio.TimeoutError):
498
if raise_on_timeout:
499
raise TimeoutError("Timeout reading from socket") from None
@@ -708,7 +706,7 @@ async def connect(self):
708
706
try:
709
707
await self._connect()
710
except asyncio.CancelledError:
711
+ raise # in 3.7 and earlier, this is an Exception, not BaseException
712
713
raise TimeoutError("Timeout connecting to server")
714
except OSError as e:
0 commit comments