Fix triplicate API calls on GET commands
This commit is contained in:
parent
0cf229273a
commit
9f47da6777
|
@ -158,9 +158,10 @@ def call_api(
|
||||||
if response.status_code in retry_on_code:
|
if response.status_code in retry_on_code:
|
||||||
failed = True
|
failed = True
|
||||||
continue
|
continue
|
||||||
|
break
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
failed = True
|
failed = True
|
||||||
pass
|
continue
|
||||||
if failed:
|
if failed:
|
||||||
error = f"Code {response.status_code}" if response else "Timeout"
|
error = f"Code {response.status_code}" if response else "Timeout"
|
||||||
raise requests.exceptions.ConnectionError(
|
raise requests.exceptions.ConnectionError(
|
||||||
|
|
Loading…
Reference in New Issue