summaryrefslogtreecommitdiff
path: root/redis/commands
diff options
context:
space:
mode:
authordvora-h <67596500+dvora-h@users.noreply.github.com>2022-07-24 15:33:43 +0300
committerGitHub <noreply@github.com>2022-07-24 15:33:43 +0300
commit1d82cb2f6a4bcda86ff78dd76d62580c5a40ca08 (patch)
treee88fd70468a6b0809ba5cbe963b2d72dd972335b /redis/commands
parentd08fdc3f202caedb3def39fc442216c915642258 (diff)
downloadredis-py-1d82cb2f6a4bcda86ff78dd76d62580c5a40ca08.tar.gz
Fix crash: key expire while search (#2270)
* fix expire while search * sleep
Diffstat (limited to 'redis/commands')
-rw-r--r--redis/commands/search/result.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/commands/search/result.py b/redis/commands/search/result.py
index 5f4aca6..451bf89 100644
--- a/redis/commands/search/result.py
+++ b/redis/commands/search/result.py
@@ -38,7 +38,7 @@ class Result:
score = float(res[i + 1]) if with_scores else None
fields = {}
- if hascontent:
+ if hascontent and res[i + fields_offset] is not None:
fields = (
dict(
dict(