catch error if no posts