petit try and catch