check for doubles
This commit is contained in:
+2
-2
@@ -147,8 +147,8 @@ class CalibreClient:
|
||||
except requests.HTTPError:
|
||||
if resp.status_code in (502, 503, 504):
|
||||
if attempt < 3:
|
||||
log.warning("HTTP %s on attempt %d/3 — retrying in 60s ...", resp.status_code, attempt)
|
||||
time.sleep(60)
|
||||
log.warning("HTTP %s on attempt %d/3 — retrying in 180s ...", resp.status_code, attempt)
|
||||
time.sleep(180)
|
||||
continue
|
||||
# All retries exhausted
|
||||
self._consecutive_failures += 1
|
||||
|
||||
Reference in New Issue
Block a user