Skip to content

Commit da5378c

Browse files
committed
Nits
1 parent 7a67b96 commit da5378c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

redis/asyncio/cluster.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,8 @@ async def _execute(
15671567
if name_exc:
15681568
name, exc = name_exc
15691569
command = " ".join(map(safe_str, cmd.args))
1570+
# Note: this will only raise the first exception, but that is
1571+
# consistent with RedisCluster.execute_command.
15701572
msg = (
15711573
f"Command # {cmd.position + 1} ({command}) of pipeline "
15721574
f"caused error on node {name}: "
@@ -1635,7 +1637,7 @@ def set_node_result(self, node_name: str, result: Union[Any, Exception]):
16351637

16361638
def unwrap_result(
16371639
self,
1638-
) -> Optional[Union[Union[Any, Exception], Dict[str, Union[Any, Exception]]]]:
1640+
) -> Optional[Union[Any, Exception, Dict[str, Union[Any, Exception]]]]:
16391641
if len(self.result) == 0:
16401642
return None
16411643
if len(self.result) == 1:

0 commit comments

Comments
 (0)