Diesels can handle a bit of petrol. Drain it, fill it right up with diesel and you'll be fine.
(That's why at the petrol station the diesel nozzle is bigger than the petrol one. So that you can put petrol in a diesel by accident, but not the other way round. That's the theory anyway).