A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-November/137195.html below:

handle errors without a reason attribute

[Python-Dev] cpython (3.4): handle errors without a reason attribute [Python-Dev] cpython (3.4): handle errors without a reason attributeAntoine 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4