Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f9cd998

Browse files
committedDec 17, 2024
Fix unbound variable
1 parent e7fcd7b commit f9cd998

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎redis/asyncio/cluster.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1576,10 +1576,10 @@ async def _execute(
15761576
msg = (
15771577
f"Command # {cmd.position + 1} ({command}) of pipeline "
15781578
f"caused error on node {name}: "
1579-
f"{result.args}"
1579+
f"{exc.args}"
15801580
)
1581-
result.args = (msg,) + result.args[1:]
1582-
raise result
1581+
exc.args = (msg,) + exc.args[1:]
1582+
raise exc
15831583

15841584
default_node = nodes.get(client.get_default_node().name)
15851585
if default_node is not None:

0 commit comments

Comments
 (0)
Please sign in to comment.