The provisions of this article with respect to registration shall not apply to any dog or cat owned by any person visiting or temporarily remaining within the city for less than 30 days, however, such dogs or cats shall be kept under restraint by the owner thereof at all times.