Skip to content

Commit

Permalink
fix: move request client retry to correct central req method used in …
Browse files Browse the repository at this point in the history
…all codepaths
  • Loading branch information
z3z1ma committed May 22, 2024
1 parent 64c9538 commit 262008e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlt/sources/helpers/requests/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 262008e

Please sign in to comment.