lib/graybook/importer/page_scraper.rb in graybook-1.0.24 vs lib/graybook/importer/page_scraper.rb in graybook-1.1.0

- old
+ new

@@ -58,11 +58,13 @@ # Page scrapers will follow a fairly simple pattern of instantiating the # agent, prepping for the scrape and then the actual scrape process def fetch_contacts! create_agent - prepare - scrape_contacts + prep = prepare + return prep if prep.nil? + cont = scrape_contacts + return cont if cont.nil? end ## # Providers will often require you to login or otherwise prepare to actual # scrape the contacts