diff options
author | dvora-h <67596500+dvora-h@users.noreply.github.com> | 2022-07-24 15:33:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-24 15:33:43 +0300 |
commit | 1d82cb2f6a4bcda86ff78dd76d62580c5a40ca08 (patch) | |
tree | e88fd70468a6b0809ba5cbe963b2d72dd972335b /redis/commands | |
parent | d08fdc3f202caedb3def39fc442216c915642258 (diff) | |
download | redis-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.py | 2 |
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( |