Fix None instance when querying (#368)

Fix None instance
main
tonibofarull 2 years ago committed by GitHub
parent 788d3dfe41
commit 9e17678094
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1205,6 +1205,8 @@ class RedisModel(BaseModel, abc.ABC, metaclass=ModelMeta):
offset = 1 # The first item is the count of total matches.
for i in range(1, len(res), step):
if res[i + offset] is None:
continue
fields = dict(
zip(
map(to_string, res[i + offset][::2]),

Loading…
Cancel
Save