Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/app_config' into add_defaults_test
Browse files Browse the repository at this point in the history
  • Loading branch information
igiloh-pinecone committed Oct 24, 2023
2 parents f48cb12 + 228ba7a commit c273bf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/resin_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def check_service_health(url: str):
raise CLIError(msg)

except requests.exceptions.HTTPError as e:
error = e.response.json().get("detail", None) or e.response.text
if e.response is not None:
error = e.response.json().get("detail", None) or e.response.text
else:
error = str(e)
msg = (
f"Resin service on {url} is not healthy, failed with error: {error}"
)
Expand Down

0 comments on commit c273bf3

Please sign in to comment.