skip annots on error

This commit is contained in:
Pete Matsyburka
2023-11-20 00:04:20 +02:00
parent 52f66368a3
commit d130835902
+3 -1
View File
@@ -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