The vaccination-registration requirements of this chapter shall not apply to any dog belonging to a nonresident of the city and kept within the city for no longer than thirty days; provided, such dog shall at all times while in the city be kept within a building or vehicle or be under restraint by the owner. (Prior code § 10-3-11)