summaryrefslogtreecommitdiff
path: root/redis/connection.py
diff options
context:
space:
mode:
Diffstat (limited to 'redis/connection.py')
-rw-r--r--redis/connection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/redis/connection.py b/redis/connection.py
index b2f3429..2461482 100644
--- a/redis/connection.py
+++ b/redis/connection.py
@@ -976,7 +976,8 @@ class Connection:
or chunklen > buffer_cutoff
or isinstance(chunk, memoryview)
):
- output.append(SYM_EMPTY.join(pieces))
+ if pieces:
+ output.append(SYM_EMPTY.join(pieces))
buffer_length = 0
pieces = []