This is considered bad practice as it will catch any exception at all, including things like keyboard interrupts, which are outside the desired behaviour. You should have some idea of what is likely to go wrong and catch only those errors.