[Tutor] How much in a "try" block?

Amit Saha amitsaha.in at gmail.com
Thu Aug 22 22:20:45 CEST 2013


On Fri, Aug 23, 2013 at 6:14 AM, leam hall <leamhall at gmail.com> wrote:
> If I have a series of tasks that depend on X happening, should I put them
> all in the same "try" block or just put X in there and exit out if it fails?


You are right about the latter. You should put only the statement
which you expect to raise the exception.




-- 
http://echorand.me


More information about the Tutor mailing list