Any person, being the owner or keeper of a dog or dogs who shall fail or refuse to abate the nuisance as set forth in this chapter, shall be guilty of a misdemeanor, punishable upon conviction by a fine not exceeding $50 or imprisonment not exceeding 30 days.