Kan. Stat. Ann. § 20-311e
No judge or court shall punish for contempt anyone making, filing or presenting the affidavit provided for by K.S.A. 20-311d or any motion founded thereon.
L. 1971, ch. 198, § 4; July 1.