Skip to content

Commit

Permalink
code format
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 855139e commit 578f06c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pymilvus/client/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,9 +1376,7 @@ def query(

future = self._stub.Query.future(request, timeout=timeout)
response = future.result()
if (
Status.EMPTY_COLLECTION in {response.status.code, response.status.error_code}
):
if Status.EMPTY_COLLECTION in {response.status.code, response.status.error_code}:
return []
if response.status.code != Status.SUCCESS or response.status.error_code != Status.SUCCESS:
raise MilvusException(
Expand Down

0 comments on commit 578f06c

Please sign in to comment.