Simple solution, if you don't care about the exact type of exception