Have a crawl running on a loop that extracts the link of an object.
Problem is there are occurrences on the page where where the object is not linked and its is producing “undefined errors” and effectively stopping the crawler.
$(this).find(’.Class’).attr( “href” )
how do I prevent this error and allow the loop to move on to the next selector?
I assume some If .Class equals or doesn’t equal but I’m stumped.