1. Hospitals, clinics and other premises operated by licensed veterinarians for the care and treatment of animals and animal shelters are exempt from the provisions of this article, except where duties are expressly stated.
2. The licensing requirements of this article shall not apply to any dog or cat belonging to a nonresident of the city and kept within the city for no longer than 30 days; provided all such dogs or cats shall at all times, while in the city, be kept within a building, enclosure or vehicle, or be under restraint by the owner.