From 2e72831369b8e6239757c1b20af417e2746a151f Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Sun, 9 Dec 2012 13:51:05 -0800 Subject: [PATCH] Fix issue13211 - Document the reason attribute for urllib.error.HTTPError --- Doc/library/urllib.error.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst index 282329fe5d7..9c04859cef3 100644 --- a/Doc/library/urllib.error.rst +++ b/Doc/library/urllib.error.rst @@ -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