Skip to content

Commit

Permalink
skip errors in pdf processor
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Feb 5, 2024
1 parent c37785e commit 1b90f77
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pdf_processor.rb
Expand Up @@ -25,6 +25,11 @@ def call(processor, operator, operands)
@pos += 1
end

@pos = 0
@num += 1
rescue HexaPDF::Error => e
Rails.logger.error(e.message)

@pos = 0
@num += 1
end
Expand Down

0 comments on commit 1b90f77

Please sign in to comment.