@@ -119,7 +119,7 @@ def download_image(_qqnumber):
# 创建一个会进行重试的适配器
session = requests.Session()
retry = Retry(
total=5, # 最多重试3次
total=255, # 最多重试255次
backoff_factor=1, # 每次重试的等待时间增加
status_forcelist=[500, 502, 503, 504], # 针对这些HTTP状态码才重试
)
The note is not visible to the blocked user.