結果 : capture errors in python