Version 1 (modified by coke, 6 years ago)

--

Exception Handlers

Instead of catching everything and rethrowing, use the handle_types method to catch only those exceptions you care about.

When using this method of handler in loops, be sure to define the handler object BEFORE the loop if you can, to avoid creating a PMC every time through the loop.