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