<div dir="ltr"><div dir="ltr">On Sat, Jan 5, 2019 at 4:39 PM Simon <<a href="mailto:simon.bordeyne@gmail.com">simon.bordeyne@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div dir="ltr"><div>I propose to be able to use the continue keyword to continue the execution of the try block even when an error is handled. The above could then be changed to :</div><div><br></div><div><div><br>    try:</div><div>        i = int("string")</div><div>        print("continued on")</div><div>        j = int(9.0)</div><div>    except ValueError as e:</div><div>        print(e)</div><div>        continue</div><div><br></div><div>>>> "invalid literal for int() with base 10: 'string'"</div></div><div>>>> "continued on"</div></div></div></div></div></blockquote><div><br></div><div>There is already a much simpler way of doing this:</div><div><br></div><div>    try:</div><div>        i = int("string")</div><div>    except ValueError as e:</div><div>        print(e)</div><div>    print("continued on")</div><div>    j = int(9.0)</div><div><br></div><div>The point of the 'try' block is to encapsulate the code you want to *stop* executing if an exception is raised. If you want code to be run regardless of whether an exception is raised, move it past the try-except.</div><div><br></div><div>~Amber <br></div></div></div>