Do I pay capital gains on the profit from the short-term sale of a house if the sale was necessitated by divorce?

I was under contract on a new home when I got divorced. I was required to purchase the home upon completion, but due to the divorce, I was forced to immediately sell. I owned the home for only 3 months. A profit was made on the home which will be split between my ex and myself. My understanding is that I would normally pay capital gains taxes on this profit due to the home being owned less than 2 years. However, I have also read that there may be an exception for divorce. How do I report the income?