Skip to content

Commit

Permalink
Merge pull request #176 from pieces-app/compatibility-issue
Browse files Browse the repository at this point in the history
fix compatibility issue
  • Loading branch information
bishoy-at-pieces authored Sep 2, 2024
2 parents 4def71a + c4ffa3b commit 50575c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pieces/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def get_health(cls):
bool: True if the health status is 'ok', False otherwise.
"""
try:
health = WellKnownApi(cls.api_client).get_well_known_health()
return health == "ok"
except Exception as e:
return False
return WellKnownApi(cls.api_client).get_well_known_health_with_http_info().status_code == 200
except:
pass
return False

0 comments on commit 50575c1

Please sign in to comment.