lib/answersengine/scraper/ruby_seeder_executor.rb in answersengine-0.9.0 vs lib/answersengine/scraper/ruby_seeder_executor.rb in answersengine-0.9.1
- old
+ new
@@ -50,10 +50,16 @@
handle_error(e) if save
raise e
end
puts "=========== Seeding Executed ==========="
- save_pages_and_outputs(pages, outputs, :seeding)
+ begin
+ save_pages_and_outputs(pages, outputs, :seeding)
+ rescue => e
+ handle_error(e) if save
+ raise e
+ end
+
update_seeding_done_status
end
proc.call
end