<font color="#000000">Hello everyone,<br><br>This may sound like a bit of a strange desire, but I want to </font>change the way in which a python program quits if an exception is not caught.  The program has many different classes of exceptions (for clarity purposes), and they're raised whenever something goes wrong.  Most I want to be fatal, but others I'd want to catch and deal with.<br>
<br>Is there any way to control Python's default exit strategy when it hits an uncaught exception (for instance, call another function that exits "differently")?<br><br>An obvious way is to just catch every exception and manually call that function, but then I fill up my script with trys and excepts which hurts readability (and makes the code uglier) and quashes tracebacks; neither of which I want to do.<br>
<br>Any thoughts?<br><br>Thanks!<br>Jason<br>