結果 : python avoid nonetype error