Edit view fails within try block and goes straight to return with no error

Solution
@main_blueprint.route("/edit_item/", methods=["GET", "POST"])
def edit_item(items_id):
    form = EditItemsForm(request.form)
    try:
        item = Items.query.get(items_id)
    except Exception:
        flash("Unable to edit item", "danger")
        return redirect(url_for("main.all_items"))
    # if request.method == 'POST':
    if form.validate_on_submit():
        try:
            item.name = form.name.data
            item.notes = form.notes.data
            db.session.commit()
        except Exception:
            db.session.rollback()
            flash("Unable to edit item", "danger")
        else:
            flash("Item edited successfully!", "success")
            return redirect(url_for("main.all_items"))
    return render_template("edit_item.html", item=item, form=form)
    # else:
    #     flash('Something went wrong', 'danger')
    # return redirect(url_for('main.all_items'))