Adding Exeptions in try..exept - fixind error in previos commit