Another way of handling get duration exceptions