Fix triplicate API calls on GET commands

This commit is contained in:
Joshua Boniface 2024-08-19 17:33:21 -04:00
parent 0cf229273a
commit 9f47da6777
1 changed files with 2 additions and 1 deletions

View File

@ -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(