summaryrefslogtreecommitdiff
path: root/redis
diff options
context:
space:
mode:
Diffstat (limited to 'redis')
-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(