Welcome to TBN....................
The hood on my JD rider also cracked. My rider hood is fiberglass so I bought a can of Bondo at the auto parts store, drilled a hole at the end of the crack to stop spreading, sanded it down and Vee'd the crack a little, mixed up and filled with Bondo. A couple hours later I sanded it down, primed and repainted with JD green rattle can. At 5' away you can't see any damage. After all, its just a mower and I wasn't going to spend hundreds on a new hood. I now have another crack to fix from someone standing on the hood instead of using a ladder but I won't mention any names. Maybe this winter I'll work on that.
If your hood is metal, drill a small hole where the crack ends to stop it from spreading and Bondo it. Or if you have a torch you can braze it using low heat. Heat may warp the thin metal though.
Body shops use Bondo on metal and fiberglass all the time.