結果 : check if error raised python