Buy house 1 in 08/10 ,built 2 in 12/13. sold 1 in12/16 gain 100K . past 5 years 08/10.-12/16 lived in house 1 for 2 years claim the exception. sold 2 in 07/17 gain 150K

buy house 1 in 08/10 ,built house 2 and moved in 12/13.  sold house 1 in12/16  gain 100K . past 5 years ( 08/10.-12/16) had lived in house 1 for 2 years , so I claim the exception .  I sold house 2 in 07/17  gain 150K ,I have lived in house 2 for more than 2 years in the past 5 years . Can I claim the exception of $500K gain again ?