結果 : python check if error is of type