From ffa126009e173a433eb6e851c20a13949abb3889 Mon Sep 17 00:00:00 2001 From: Amnon Catav Date: Tue, 24 Oct 2023 12:34:28 +0300 Subject: [PATCH] Update src/resin_cli/cli.py Co-authored-by: igiloh-pinecone <118673156+igiloh-pinecone@users.noreply.github.com> --- src/resin_cli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = (