Section 30 of the Indian contract act has an exception that states that nothing under this section affects the provision of section 294A of the Indian penal code, which applies to transactions related to horse racing.