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 2bb618f commit a051acaCopy full SHA for a051aca
redis/asyncio/connection.py
@@ -491,8 +491,6 @@ async def read_from_socket(
491
# data was read from the socket and added to the buffer.
492
# return True to indicate that data was read.
493
return True
494
- except asyncio.CancelledError:
495
- raise
496
except (socket.timeout, asyncio.TimeoutError):
497
if raise_on_timeout:
498
raise TimeoutError("Timeout reading from socket") from None
@@ -711,7 +709,7 @@ async def connect(self):
711
709
lambda: self._connect(), lambda error: self.disconnect()
712
710
)
713
except asyncio.CancelledError:
714
+ raise # in 3.7 and earlier, this is an Exception, not BaseException
715
716
raise TimeoutError("Timeout connecting to server")
717
except OSError as e:
0 commit comments