Skip to content
Myr

Do not hide SSLErrors behind Timeouts.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Cory Benfield · committed by Cory Benfield · parent c19ff03 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/models.py+3 added-3 removed
598 unmodified lines
599 except MaxRetryError as e:600 raise ConnectionError(e)601602 except (_SSLError, _HTTPError) as e:603 if self.verify and isinstance(e, _SSLError):603 if isinstance(e, _SSLError):604 raise SSLError(e)605 else:606 raise Timeout('Request timed out.')607606 raise Timeout('Request timed out.')607608 # build_response can throw TooManyRedirects609 self._build_response(r)610611 # Response manipulation hook.
222 unmodified lines