diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-12-09 21:51:05 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-12-09 21:51:05 (GMT) |
commit | 2e72831369b8e6239757c1b20af417e2746a151f (patch) | |
tree | e673c11271089f039a85084ecf9f8bd078763dc1 | |
parent | 4ee03fa4d52e2d7572f4a75127bfa18aac963782 (diff) | |
download | cpython-2e72831369b8e6239757c1b20af417e2746a151f.zip cpython-2e72831369b8e6239757c1b20af417e2746a151f.tar.gz cpython-2e72831369b8e6239757c1b20af417e2746a151f.tar.bz2 |
Fix issue13211 - Document the reason attribute for urllib.error.HTTPError
-rw-r--r-- | Doc/library/urllib.error.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst index 282329f..9c04859 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 |