結果 : how to check exception in python