summaryrefslogtreecommitdiff
path: root/redis/commands/helpers.py
diff options
context:
space:
mode:
authorChayim <chayim@users.noreply.github.com>2021-11-02 11:55:07 +0200
committerGitHub <noreply@github.com>2021-11-02 11:55:07 +0200
commit75c5d5974ed3f6a5069f601f4c0d42ad3ae48c76 (patch)
tree0b2816f1b8e05ccae996931d7c1e99e004c403aa /redis/commands/helpers.py
parente46dd85aa9e30a27106baf04ce22cb3e986857bb (diff)
downloadredis-py-75c5d5974ed3f6a5069f601f4c0d42ad3ae48c76.tar.gz
Improved JSON accuracy (#1666)
Diffstat (limited to 'redis/commands/helpers.py')
-rw-r--r--redis/commands/helpers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/redis/commands/helpers.py b/redis/commands/helpers.py
index a92c025..48ee556 100644
--- a/redis/commands/helpers.py
+++ b/redis/commands/helpers.py
@@ -22,6 +22,8 @@ def nativestr(x):
def delist(x):
"""Given a list of binaries, return the stringified version."""
+ if x is None:
+ return x
return [nativestr(obj) for obj in x]