結果 : handle error in python