結果 : python if else throw exception