Skip to content

Commit

Permalink
Skip but report page parsing failures
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkyMarkMcDonald committed Mar 17, 2018
1 parent 38778e6 commit 218e694
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/doc_doc/house_visit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 218e694

Please sign in to comment.