Skip to content

Commit 71355ea

Browse files
committed
Fix
1 parent 16630a9 commit 71355ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/crawlee/storage_clients/_redis/_dataset_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ async def get_data(
197197
if data is None:
198198
data = []
199199

200+
data = [item for item in data if isinstance(item, dict)]
201+
200202
if skip_empty:
201203
data = [item for item in data if item]
202204

@@ -212,7 +214,7 @@ async def get_data(
212214
limit=limit or (total - offset),
213215
total=total,
214216
desc=desc,
215-
items=data, # ty: ignore[invalid-argument-type]
217+
items=data,
216218
)
217219

218220
@override

0 commit comments

Comments
 (0)