You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: meilisearch/client.py
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -159,7 +159,26 @@ def health(self):
159
159
MeiliSearchApiError
160
160
An error containing details about why MeiliSearch can't process your request. MeiliSearch error codes are described here: https://docs.meilisearch.com/errors/#meilisearch-errors
161
161
"""
162
-
returnself.http.get(self.config.paths.health)
162
+
try:
163
+
self.http.get(self.config.paths.health)
164
+
exceptMeiliSearchApiErroraserr:
165
+
raiseerr
166
+
returnTrue
167
+
168
+
defis_healthy(self):
169
+
"""Get health of the MeiliSearch server.
170
+
171
+
`200` HTTP status response when MeiliSearch is healthy.
0 commit comments