File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,7 @@ async def get_health_status(self, **kwargs: Any) -> str:
635635 response = await self ._request (method = method , path = path , ** kwargs )
636636 data = response .json ()
637637 return data ["status" ]
638- except httpx .RequestError :
638+ except ( httpx .RequestError , httpx . HTTPStatusError ) :
639639 return "DOWN"
640640
641641 async def is_healthy (self , ** kwargs : Any ) -> bool :
@@ -1323,7 +1323,7 @@ def get_health_status(self, **kwargs: Any) -> str:
13231323 response = self ._request (method = method , path = path , ** kwargs )
13241324 data = response .json ()
13251325 return data ["status" ]
1326- except httpx .RequestError :
1326+ except ( httpx .RequestError , httpx . HTTPStatusError ) :
13271327 return "DOWN"
13281328
13291329 def is_healthy (self , ** kwargs : Any ) -> bool :
You can’t perform that action at this time.
0 commit comments