So don't worry about it. I haven't heard of any school that won't give you the chance to shoot directly because of failing the thesis. There should be a chance to rewrite it, but it may take a year or six months to get the degree certificate.
Generally, the paper grades will come down in 2-3 months. Don't worry if you are very unlucky. Contact the tutor to revise it again and hand it over to the school within the specified time.