結果 : python check if error is raised