]> granicus.if.org Git - python/commitdiff
Document the reason attribute of urllib.HTTPError Patch by Berker Peksag
authorSenthil Kumaran <senthil@uthcode.com>
Sun, 9 Dec 2012 21:36:40 +0000 (13:36 -0800)
committerSenthil Kumaran <senthil@uthcode.com>
Sun, 9 Dec 2012 21:36:40 +0000 (13:36 -0800)
Doc/library/urllib2.rst

index 1121e5fbfce56c0b16ba8879606e1b120b1fcc95..39d39dbda7c25a64c354888064d39ea5e05c0088 100644 (file)
@@ -121,7 +121,10 @@ The following exceptions are raised as appropriate:
       This numeric value corresponds to a value found in the dictionary of
       codes as found in :attr:`BaseHTTPServer.BaseHTTPRequestHandler.responses`.
 
+   .. attribute:: reason
 
+      The reason for this error.  It can be a message string or another exception
+      instance.
 
 The following classes are provided: