There was an error while loading. Please reload this page.
1 parent 418b93b commit 6722bbfCopy full SHA for 6722bbf
elasticsearch/client/__init__.py
@@ -210,7 +210,10 @@ def ping(self, params=None):
210
Returns True if the cluster is up, False otherwise.
211
`<http://www.elastic.co/guide/>`_
212
"""
213
- return self.transport.perform_request('HEAD', '/', params=params)
+ try:
214
+ return self.transport.perform_request('HEAD', '/', params=params)
215
+ except TransportError:
216
+ return False
217
218
@query_params()
219
def info(self, params=None):
0 commit comments