On Tue, 25 Nov 2014 19:21:08 -0500 Benjamin Peterson <benja...@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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com