We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 623d421 commit 14bf2b2Copy full SHA for 14bf2b2
pymilvus/client/grpc_handler.py
@@ -90,9 +90,9 @@ def _wait_for_channel_ready(self):
90
grpc.channel_ready_future(self._channel).result(timeout=3)
91
return
92
except grpc.FutureTimeoutError:
93
- raise BaseException(f'Fail connecting to server on {self._uri}. Timeout')
+ raise BaseException(Status.CONNECT_FAILED, f'Fail connecting to server on {self._uri}. Timeout')
94
95
- raise BaseException(f'Please setup grpc channel first')
+ raise BaseException(Status.CONNECT_FAILED, 'No channel in handler, please setup grpc channel first')
96
97
def close(self):
98
self._channel.close()
0 commit comments