bare excepts

Martin Pool mbp at sourcefrog.net
Wed Jan 4 06:48:16 GMT 2006


On  3 Jan 2006, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
> Martin Pool wrote:
> | Yes, +1 on grepping for it.  A counter seems a bit likely to let them
> | slip through - maybe allow the form
> |
> |   try:
> |   except:    # WARNING BARE EXCEPT
> 
> Perhaps
> try:
> except Exception, e: # NOT A HACK adhb20050103
> 
> "Warning bare except" doesn't quite have the "I did this deliberately
> and for a good reason" flavor for me.

That's true.  Any text that indicates the person realizes they did
something bad would be OK.

> Welcome back!

Thanks!

-- 
Martin




More information about the bazaar mailing list