The following amusement rides or amusement attractions are exempt from the provisions of this Act:
Any amusement ride or amusement attraction which is owned or operated by a non-profit religious, educational or charitable institution or association if such amusement ride or amusement attraction is located within a building subject to inspection by the state fire marshal or by any political subdivisions of the State under its building, fire, electrical, and related public safety ordinances, and the amusement ride or amusement attraction itself has passed an inspection by a political subdivision of the State in accordance with Section 2-17.
430 ILCS 85/2-16