Skip to content
Myr

Merge pull request #1193 from Lukasa/timeout_exception

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

Throw more informative exceptions.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 7e0b9cf, c2480f6 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/adapters.py+1 added-1 removed
226 unmodified lines
227 raise SSLError(e)228 elif isinstance(e, TimeoutError):229 raise Timeout(e)230 else:231 raise Timeout('Request timed out.')231 raise232233 r = self.build_response(request, resp)234235 if not stream:
3 unmodified lines