[Python-Dev] cpython (3.4): handle errors without a reason attribute
Antoine Pitrou
solipsis at pitrou.net
Wed Nov 26 01:29:50 CET 2014
On Tue, 25 Nov 2014 19:21:08 -0500
Benjamin Peterson <benjamin at python.org> wrote:
> >
> > You should be able to keep the e.reason test if you only catch SSLError.
>
> Unfortunately, test_robotparser seems to manage to raise a cert
> validation error without a reason.
Ahh... Perhaps it's urllib catching the SSLError and re-raising it as a
URLError with the same message with no reason, then.
Regards
Antoine.
More information about the Python-Dev
mailing list