Skip to content

Commit 3f2989a

Browse files
makinzmntkathole
authored andcommitted
chore: fix type to check whether it is None
Signed-off-by: makinzm <nozomi.maki.da@gmail.com>
1 parent a957183 commit 3f2989a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • sdk/python/feast/infra/online_stores/milvus_online_store

sdk/python/feast/infra/online_stores/milvus_online_store/milvus.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ def _drop_all_version_collections(self, project: str, table: FeatureView) -> Non
764764
"""
765765
base = f"{project}_{table.name}"
766766
versioned_prefix = f"{base}_v"
767+
assert self.client is not None, "Milvus client is not initialized"
767768
for collection_name in self.client.list_collections():
768769
if collection_name == base or (
769770
collection_name.startswith(versioned_prefix)

0 commit comments

Comments
 (0)