diff --git a/src/resin_cli/cli.py b/src/resin_cli/cli.py index aba635b7..7a87f78a 100644 --- a/src/resin_cli/cli.py +++ b/src/resin_cli/cli.py @@ -52,7 +52,7 @@ def check_service_health(url: str): except requests.exceptions.HTTPError as e: if e.response is not None: - error = e.response.json().get("detail", "") or e.response.text + error = e.response.json().get("detail", None) or e.response.text else: error = str(e) msg = (