This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jmoy
Recipients jmoy, orsenthil
Date 2012-01-08.06:22:18
SpamBayes Score 1.9290924e-08
Marked as misclassified No
Message-id <1326003740.31.0.0410778534365.issue13736@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation for urlopen says that it raises URLError on error. 
But there exist error conditions such as a socket timeout or a bad HTTP status line under which the exception from the underlying library leaks through urllib, thus breaking the promise in the documentation.

I am attaching a test program that demonstrates this bug.
History
Date User Action Args
2012-01-08 06:22:20jmoysetrecipients: + jmoy, orsenthil
2012-01-08 06:22:20jmoysetmessageid: <1326003740.31.0.0410778534365.issue13736@psf.upfronthosting.co.za>
2012-01-08 06:22:19jmoylinkissue13736 messages
2012-01-08 06:22:19jmoycreate