common mistakes in this simple program
ganesh1pal at gmail.com
Mon Feb 29 14:49:30 EST 2016
On Mar 1, 2016 12:06 AM, "Chris Angelico" <rosuav at gmail.com> wrote
> You're falling into the trap of assuming that the only exception you
> can ever get is the one that you're planning for, and then handling.
Ok sure !
> ALL exceptions as though they were that one. Instead catch ONLY the
> exception that you're expecting to see, and ignore everything else. Do
> not use a bare "except:" clause, nor even "except Exception:", for
> this. You will appreciate it later on.
What option do I have now in so ensure that I loop over the For loop. Try
except is ruled out ?
More information about the Python-list