How do you obtain underlying failed request data when catching requests.exceptions.RetryError?
How do you obtain underlying failed request data when catching requests.exceptions.RetryError? Question: I am using a somewhat standard pattern for putting retry behavior around requests requests in Python, import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry retry_strategy = Retry( total=HTTP_RETRY_LIMIT, status_forcelist=HTTP_RETRY_CODES, method_whitelist=HTTP_RETRY_METHODS, backoff_factor=HTTP_BACKOFF_FACTOR ) adapter = HTTPAdapter(max_retries=retry_strategy) http = requests.Session() http.mount("https://", adapter) http.mount("http://", …