An Accrington landlord has been sentenced to six months imprisonment after he ignored repeated warnings about arranging an annual gas safety check at a house in the town.