Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper committed Dec 2, 2023
1 parent 1fbaac4 commit 1f6fe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/client/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def _execute_search(
return SearchFuture(future, func)

response = self._stub.Search(request, timeout=timeout)
if response.status.code == 0 and response.status.error_code == 0:
if response.status.code != 0 or response.status.error_code != 0:
raise MilvusException(response.status.code, response.status.reason)

round_decimal = kwargs.get("round_decimal", -1)
Expand Down

0 comments on commit 1f6fe81

Please sign in to comment.