mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix issue13211 - Document the reason attribute for urllib.error.HTTPError
This commit is contained in:
parent
4ee03fa4d5
commit
2e72831369
1 changed files with 4 additions and 0 deletions
|
|
@ -39,6 +39,10 @@ The following exceptions are raised by :mod:`urllib.error` as appropriate:
|
|||
to a value found in the dictionary of codes as found in
|
||||
:attr:`http.server.BaseHTTPRequestHandler.responses`.
|
||||
|
||||
.. attribute:: reason
|
||||
|
||||
This is usually a string explaining the reason for this error.
|
||||
|
||||
.. exception:: ContentTooShortError(msg, content)
|
||||
|
||||
This exception is raised when the :func:`urlretrieve` function detects that
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue