skip annots on error
This commit is contained in:
@@ -17,7 +17,9 @@ module Templates
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user