結果 : python check if function raises exception