From 9f47da67775ac024f8f84f7e5b36217f0282b6e4 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 19 Aug 2024 17:33:21 -0400 Subject: [PATCH] Fix triplicate API calls on GET commands --- client-cli/pvc/lib/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-cli/pvc/lib/common.py b/client-cli/pvc/lib/common.py index ec5cd718..1dbb5eb7 100644 --- a/client-cli/pvc/lib/common.py +++ b/client-cli/pvc/lib/common.py @@ -158,9 +158,10 @@ def call_api( if response.status_code in retry_on_code: failed = True continue + break except requests.exceptions.ConnectionError: failed = True - pass + continue if failed: error = f"Code {response.status_code}" if response else "Timeout" raise requests.exceptions.ConnectionError(