Ducplicate try except as on line 33?