Skip to content

Commit 3d37836

Browse files
committed
Fix version check
1 parent 03228dd commit 3d37836

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

weaviate/collections/collection/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def iterator(
310310
Raises:
311311
weaviate.exceptions.WeaviateGRPCQueryError: If the request to the Weaviate server fails.
312312
"""
313-
if self.query._connection._weaviate_version.is_lower_than(1, 33, 0):
313+
if filters is not None and self.query._connection._weaviate_version.is_lower_than(1, 33, 0):
314314
raise WeaviateUnsupportedFeatureError(
315315
"Iterator with filters", self._connection.server_version, "1.33.0"
316316
)

weaviate/collections/collection/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def iterator(
335335
Raises:
336336
weaviate.exceptions.WeaviateGRPCQueryError: If the request to the Weaviate server fails.
337337
"""
338-
if self.query._connection._weaviate_version.is_lower_than(1, 33, 0):
338+
if filters is not None and self.query._connection._weaviate_version.is_lower_than(1, 33, 0):
339339
raise WeaviateUnsupportedFeatureError(
340340
"Iterator with filters", self._connection.server_version, "1.33.0"
341341
)

0 commit comments

Comments
 (0)