Sayyiduna Ibn Umar (may Allah be pleased with them both) said: "Every exception that is joined to the oath means no breach for the one who makes it; but if the exception is not joined, then he is in breach."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأيمان / 19926