I don't think it's good to put the whole function inside the try statement, it should just be the bits we think might fail.