check for doubles

This commit is contained in:
2026-05-12 15:04:08 +02:00
parent f726174648
commit 7609bd926c
+2 -2
View File
@@ -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