Motivation: often I'm testing code on the fly (testing as I write the code, in other words). I am well aware of errors that lie ahead, but I only want to run the code up until the quit() line which I know has no errors, and ignore the ignore any errors beyond the quit() line, which will be dealt with later.
Unfortunately, any errors beyond quit() prevent me from running the code at all.
I need a way to say to python, "just run the code up until quit() and don't worry about what comes later".
How can I achieve this? I have no particular attachment to quit(). If another function would achieve the same, then that is acceptable to me.