結果 : how to throw an error message in python