Skip to content

Commit

Permalink
Rescue from http error and post a notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin Fahy committed Oct 9, 2017
1 parent 7d0962a commit 609e8d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vatican_data_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def commit
# Get the manifest data
def fetch_manifest
@manifest = JSON.parse(open(@url).read)
rescue OpenURI::HTTPError => e
puts "URL: #{@url} returned #{e}"
end

def define_doc
Expand Down

0 comments on commit 609e8d0

Please sign in to comment.