Skip to content

Commit

Permalink
fix compatibility issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bishoy-at-pieces authored Sep 1, 2024
1 parent 4def71a commit 8dbc9d9
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 self.well_known_api.get_well_known_health_with_http_info().status_code == 200
except:
pass
return False

0 comments on commit 8dbc9d9

Please sign in to comment.