Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21dcb93

Browse files
committed
#22797: clarify when URLErrors are raised by urlopen.
1 parent fde75ae commit 21dcb93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The :mod:`urllib.request` module defines the following functions:
8383
:class:`URLopener` and :class:`FancyURLopener` classes, this function
8484
returns a :class:`urllib.response.addinfourl` object.
8585

86-
Raises :exc:`~urllib.error.URLError` on errors.
86+
Raises :exc:`~urllib.error.URLError` on protocol errors.
8787

8888
Note that ``None`` may be returned if no handler handles the request (though
8989
the default installed global :class:`OpenerDirector` uses

0 commit comments

Comments
 (0)