diff --git a/lib/templates/build_annotations.rb b/lib/templates/build_annotations.rb index 8d0113c88..54f584b4c 100644 --- a/lib/templates/build_annotations.rb +++ b/lib/templates/build_annotations.rb @@ -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