結果 : how to manually throw an exception in python