Skip to content

Commit 644ba06

Browse files
kkopczynski-cyborgCopilot
authored andcommitted
Update cyborgdb/client/client.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 44697f7 commit 644ba06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cyborgdb/client/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ def load_index(self, index_name: str, index_key: bytes) -> EncryptedIndex:
227227
api_client=self.api_client
228228
)
229229

230-
# Check if the index exists by trying to retrieve its type
231-
# This will raise an exception if the index does not exist
232-
index_type = index.index_type
230+
# Attempt to access index.index_type to validate existence.
231+
# This will raise an exception if the index does not exist.
232+
_ = index.index_type # Access for validation; value not used.
233233

234234
# Create the EncryptedIndex instance
235235
return index

0 commit comments

Comments
 (0)