try except numpy type