結果 : how to return a custom error in python