Commit 2e728313 authored by Senthil Kumaran's avatar Senthil Kumaran

Fix issue13211 - Document the reason attribute for urllib.error.HTTPError

parent 4ee03fa4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment