1423. The seller is obliged to make restitution of the whole price of the thing sold, although, at the time of eviction, it be found to be diminished in value, or deteriorated, either by the neglect of the buyer, or by a fortuitous event; unless the buyer has derived a profit from the deterioration caused by him or her, in which case the seller may deduct from the price a sum equal to such profit.