Can you not take depreciation the year you sell a rental house?

We sold our rental house in 2019.  We rented the house for 6 months and sold it 3 1/2 months later. Can we not take depreciation in 2019? Otherwise, I assume we would pay taxes on the depreciation next year.