結果 : raise exception if else python