How not to handle an exception in Python
Have a look at this piece of code: Can you spot the anti-pattern? The first thing that hits the eye is the overly broad except clause. You want to be as specific as possible when catching exceptions, but at the very least, you should limit the except clause to the class Exception. The class hierarchy […]