Skip to content

Commit cf1875d

Browse files
Yard1bacchuswng
andcommitted
Fix unbound variable
Co-authored-by: Edmund L. Wong <[email protected]>
1 parent e7fcd7b commit cf1875d

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)