Add TypeError to the except