結果 : how to properly raise exception python