diff --git a/redis/asyncio/client.py b/redis/asyncio/client.py index 1cc0365a7b..77afeb3cdd 100644 --- a/redis/asyncio/client.py +++ b/redis/asyncio/client.py @@ -1584,7 +1584,7 @@ def annotate_exception( cmd = " ".join(map(safe_str, command)) msg = ( f"Command # {number} ({truncate_text(cmd)}) " - "of pipeline caused error: {exception.args}" + f"of pipeline caused error: {exception.args}" ) exception.args = (msg,) + exception.args[1:]