結果 : raise exception if condition python