結果 : exit function if error python