If you filed for N-400 under 3 year rule, based on marriage you won't be able to naturalize with divorce. You need to withdraw the N-400, also convert I-751 to divorce waiver.
If filed under 5 year rule, you may be able to continue, but you'd have to convert I-751 petition to divorce waiver and get it approved first.