Fix error handling
This commit is contained in:
parent
bf2001d39c
commit
2a8e2835f3
1 changed files with 5 additions and 1 deletions
|
|
@ -98,7 +98,11 @@ module PdfDocuments
|
|||
def safe_display(value, &block)
|
||||
return if value.blank?
|
||||
|
||||
yield(value) rescue StandardError { nil }
|
||||
begin
|
||||
yield(value)
|
||||
rescue StandardError do
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
def bold(text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue