Raising Hell, Catching Errors
One of my favorite Python topics to talk about is error handling—specifically, how to use and not use exceptions. Error handling is hard and tricky. Error handling can mean the difference between an application that can be debugged and one that can’t. Error handling can blow your business up in the middle of the night if you aren’t careful. So, yes, how you handle errors is important. In this article, I’ll dig into some of the details of exceptions, some surefire techniques for shooting yourself in the foot, and some ways to avoid it.