No Form 4797 needed.
Gain to the extent of prior depreciation is taxable even when they otherwise qualify for the $250K/$500K exclusion.