結果 : python check for error type