Skip to content

Commit c8f4b24

Browse files
committed
fixing variable in cancel
1 parent 7bebfe5 commit c8f4b24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/asyncio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ async def execute(self, raise_on_error: bool = True):
13931393
)
13941394
except asyncio.CancelledError:
13951395
# not supposed to be possible, yet here we are
1396-
await connection.disconnect(nowait=True)
1396+
await conn.disconnect(nowait=True)
13971397
raise
13981398
finally:
13991399
await self.reset()

0 commit comments

Comments
 (0)