(b)except when it is otherwise expressly provided in this Act no dwelling house, and no part of a public building used as a dwelling place, shall be so entered without the consent of the occupier thereof, unless the said occupier has been served with at least three hours, previous notice of the intention to make such entry;