Sales of additional home

Hi - I was divorced a number of years ago and had to move from Oregon to California for work. In order to be able to be with my kids, I purchased a condo close to where they lived and visited on weekends. As the kids got older and one moved to California, it didn't make sense to keep it and I couldn't afford it, so I sold it in 2019. Would this qualify for a main home and, therefore, the tax exclusion for the sale of a home (pub. 523 mentions "The home is near: 1. Where you work, 2. Where you bank, 3. The residence of one or more family members...")? I never rented it and owned it for more than 5 years.

 

Peter