Except with respect to Article 9 of this Code, any person who knowingly (a) does any act prohibited by or declared unlawful by, or (b) fails to do any act required by, this Code, shall, unless a different punishment is prescribed by this Code, be guilty of a Class A misdemeanor.
10 ILCS 5/29-12