try except for transit duration