Skip to content

Commit

Permalink
fix(codecov): fix issues with thread crashing (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Dec 19, 2024
1 parent 82b6f2a commit bf3afd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import pathlib
from typing import Union
from urllib3 import Retry

# lib imports
import cloudscraper
Expand All @@ -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)


Expand Down

0 comments on commit bf3afd7

Please sign in to comment.