[New-bugs-announce] [issue4788] two bare "except" clauses are used in the ssl module

Giampaolo Rodola' report at bugs.python.org
Wed Dec 31 01:12:17 CET 2008

New submission from Giampaolo Rodola' <billiejoex at users.sourceforge.net>:

>From PEP-8:

> When catching exceptions, mention specific exceptions
> whenever possible instead of using a bare 'except:' clause.
> [...] 
> A bare 'except:' clause will catch SystemExit and KeyboardInterrupt
> exceptions, making it harder to interrupt a program with Control-C,
> and can disguise other problems.

The patch in attachment removes two bare "except" clauses used in ssl 

components: Library (Lib)
files: ssl.patch
keywords: patch
messages: 78575
nosy: giampaolo.rodola
severity: normal
status: open
title: two bare "except" clauses are used in the ssl module
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file12499/ssl.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list