The lease continues when the house sells
A sale does not by itself cancel the lease. The buyer takes the house subject to the lease and becomes the new landlord. Selling alone does not give you possession of an occupied house; the lease and applicable notice rules still matter.
