Add try, except's (#24103)