Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Yard1 committed Nov 19, 2024
1 parent 7a67b96 commit da5378c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion redis/asyncio/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,8 @@ async def _execute(
if name_exc:
name, exc = name_exc
command = " ".join(map(safe_str, cmd.args))
# Note: this will only raise the first exception, but that is
# consistent with RedisCluster.execute_command.
msg = (
f"Command # {cmd.position + 1} ({command}) of pipeline "
f"caused error on node {name}: "
Expand Down Expand Up @@ -1635,7 +1637,7 @@ def set_node_result(self, node_name: str, result: Union[Any, Exception]):

def unwrap_result(
self,
) -> Optional[Union[Union[Any, Exception], Dict[str, Union[Any, Exception]]]]:
) -> Optional[Union[Any, Exception, Dict[str, Union[Any, Exception]]]]:
if len(self.result) == 0:
return None
if len(self.result) == 1:
Expand Down

0 comments on commit da5378c

Please sign in to comment.