Skip to content

[3.14] gh-57945: Document exceptions not wrapped by urlopen() (GH-160830) - #160831

Merged
orsenthil merged 1 commit into
python:3.14from
miss-islington:backport-87f8c0d-3.14
Oct 28, 2026
Merged

orsenthil merged 1 commit into
python:3.14from
miss-islington:backport-87f8c0d-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Exceptions raised while reading or parsing the HTTP response, such as
http.client.HTTPException subclasses and OSError subclasses like
TimeoutError, propagate from urlopen() without being wrapped in
URLError. Document this, and that ValueError is raised for an invalid
URL.
(cherry picked from commit 87f8c0d)

Co-authored-by: Senthil Kumaran senthil@python.org
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com

…H-160830)

Exceptions raised while reading or parsing the HTTP response, such as
http.client.HTTPException subclasses and OSError subclasses like
TimeoutError, propagate from urlopen() without being wrapped in
URLError.  Document this, and that ValueError is raised for an invalid
URL.
(cherry picked from commit 87f8c0d)

Co-authored-by: Senthil Kumaran <senthil@python.org>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@orsenthil
orsenthil merged commit 0068b4a into python:3.14 Oct 28, 2026
38 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 28, 2026
@miss-islington
miss-islington deleted the backport-87f8c0d-3.14 branch October 28, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants