結果 : python check if exception type