Nothing herein contained applies to proceedings before Courts Martial, or to oaths, affirmations or declarations prescribed by or under any law or President's warrants for the time being in force....