sync errors
This commit is contained in:
+1
-1
@@ -121,7 +121,7 @@ class CalibreClient:
|
|||||||
except requests.HTTPError as e:
|
except requests.HTTPError as e:
|
||||||
last_err = e
|
last_err = e
|
||||||
if resp.status_code in (502, 503, 504) and attempt < 3:
|
if resp.status_code in (502, 503, 504) and attempt < 3:
|
||||||
delay = 2 if attempt == 1 else 6
|
delay = 4 if attempt == 1 else 12
|
||||||
log.warning("HTTP %s on attempt %d/3 — retrying in %ds ...", resp.status_code, attempt, delay)
|
log.warning("HTTP %s on attempt %d/3 — retrying in %ds ...", resp.status_code, attempt, delay)
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user