[Python-Dev] PEP 8: mention bare 'except:'

Brett Cannon brett at python.org
Fri Dec 22 21:15:23 CET 2006


On 12/22/06, A.M. Kuchling <amk at amk.ca> wrote:
> http://www.python.org/sf/411881 is a bug about removing use
> of 'except:' in stdlib code.  In many cases the intent is to catch
> one particular exception such as ImportError or AttributeError,
> but catching all exceptions can disguise othter problems.
>
> Should PEP 8 mention this issue?

Yes.

-Brett


More information about the Python-Dev mailing list