From 262008e475812f60b4900f851b6e08d51ab9a435 Mon Sep 17 00:00:00 2001 From: z3z1ma Date: Tue, 21 May 2024 21:00:21 -0700 Subject: [PATCH] fix: move request client retry to correct central req method used in all codepaths --- dlt/sources/helpers/requests/retry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlt/sources/helpers/requests/retry.py b/dlt/sources/helpers/requests/retry.py index c9a813598f..3f9d7d559e 100644 --- a/dlt/sources/helpers/requests/retry.py +++ b/dlt/sources/helpers/requests/retry.py @@ -239,7 +239,7 @@ def _make_session(self) -> Session: session.mount("http://", self._adapter) session.mount("https://", self._adapter) retry = _make_retry(**self._retry_kwargs) - session.request = retry.wraps(session.request) # type: ignore[method-assign] + session.send = retry.wraps(session.send) # type: ignore[method-assign] return session @property