Skip to content

Commit 9e17678

Browse files
authored
Fix None instance when querying (#368)
Fix None instance
1 parent 788d3df commit 9e17678

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aredis_om/model/model.py

+2
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,8 @@ def to_string(s):
12051205
offset = 1 # The first item is the count of total matches.
12061206

12071207
for i in range(1, len(res), step):
1208+
if res[i + offset] is None:
1209+
continue
12081210
fields = dict(
12091211
zip(
12101212
map(to_string, res[i + offset][::2]),

0 commit comments

Comments
 (0)