From bf3afd7f071fdb4b6ff6b5555d99b0e3766eff1c Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:40:16 -0500 Subject: [PATCH] fix(codecov): fix issues with thread crashing (#65) --- src/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers.py b/src/helpers.py index 9dba3ee5..a734f0a4 100644 --- a/src/helpers.py +++ b/src/helpers.py @@ -3,6 +3,7 @@ import os import pathlib from typing import Union +from urllib3 import Retry # lib imports import cloudscraper @@ -12,7 +13,7 @@ # setup requests session s = cloudscraper.CloudScraper() # CloudScraper inherits from requests.Session -retry_adapter = HTTPAdapter(max_retries=5) +retry_adapter = HTTPAdapter(max_retries=Retry(total=5, backoff_factor=1)) s.mount('https://', retry_adapter)