Skip to content

Commit

Permalink
Fix index_name in Index.drop() (#930)
Browse files Browse the repository at this point in the history
Signed-off-by: dragondriver <[email protected]>
  • Loading branch information
longjiquan authored Mar 31, 2022
1 parent 394f498 commit 8e9dde9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymilvus/orm/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def drop(self, timeout=None, **kwargs):
"""
copy_kwargs = copy.deepcopy(kwargs)
index_name = copy_kwargs.get("index_name", DefaultConfigs.IndexName)
copy_kwargs.pop("index_name")
if copy_kwargs.get("index_name"):
copy_kwargs.pop("index_name")
conn = self._get_connection()
if conn.describe_index(self._collection.name, index_name) is None:
raise IndexNotExistException(0, ExceptionsMessage.IndexNotExist)
Expand Down

0 comments on commit 8e9dde9

Please sign in to comment.