From 8739e0f4c8dfa2bc06da85fa61b44a31b5104f0d Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Sun, 25 Dec 2022 11:03:59 +0800 Subject: [PATCH] fix --- utils/HtmlUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index 85edfe0..a8a37d5 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -49,7 +49,7 @@ class htmlUtils: @classmethod def getHTML(cls, curl,type=None): - retries = Retry(total=3, + retries = Retry(total=1, backoff_factor=0.1, status_forcelist=[ 500, 502, 503, 504 ]) s = requests.Session()