Skip to content

Commit

Permalink
skip annots on error
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Nov 19, 2023
1 parent 52f6636 commit d130835
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/templates/build_annotations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def call(data)
build_external_link_hash(page, annot).merge('page' => index)
end
end
rescue PDF::Reader::MalformedPDFError, OpenSSL::Cipher::CipherError
rescue StandardError => e
Rollbar.error(e) if defined?(Rollbar)

[]
end

Expand Down

0 comments on commit d130835

Please sign in to comment.