Iterating through a list. Upon condition I want to move on to next item in list

Dan Stromberg drsalists at gmail.com
Wed May 10 18:41:03 EDT 2017


On Wed, May 10, 2017 at 1:46 PM, MRAB <python at mrabarnett.plus.com> wrote:

> NEVER use a 'bare except' to suppress exceptions! It'll catch _all_
> exceptions, even NameError (if you've misspelled a name, it'll catch that
> too). Catch only those exceptions that you're prepared to deal with.

When writing many kinds of applications, this is great advice.

But is it good when writing REST API's?  You don't want one buggy API
call to bring down the whole service.

Or am I missing something?



More information about the Python-list mailing list