結果 : how to catch an error in python