From 218e6949065c84790f923952635f1d5adcea0f82 Mon Sep 17 00:00:00 2001 From: Mark McDonald Date: Sat, 17 Mar 2018 17:57:22 -0400 Subject: [PATCH] Skip but report page parsing failures --- lib/doc_doc/house_visit.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/doc_doc/house_visit.rb b/lib/doc_doc/house_visit.rb index ee59893..7aef800 100644 --- a/lib/doc_doc/house_visit.rb +++ b/lib/doc_doc/house_visit.rb @@ -27,6 +27,10 @@ def illness OpenStruct.new(type: 'fragment', description: 'More than one dom node has this id') rescue Capybara::ElementNotFound OpenStruct.new(type: 'fragment', description: 'No dom node with this id found') + rescue StandardError => e + if $DEBUG + puts "[DOC_DOC ERROR] Ran into exception when trying to follow: #{@patient.home}\n#{e.message}" + end end else nil