diff --git a/aredis_om/model/model.py b/aredis_om/model/model.py index 5dd3b91..1887476 100644 --- a/aredis_om/model/model.py +++ b/aredis_om/model/model.py @@ -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]),