結果 : how to throw an error in python