Fix error handling
Some checks failed
/ Run tests (push) Failing after 1m51s
/ Run system tests (push) Failing after 1m46s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-11-23 23:19:06 +01:00
parent bf2001d39c
commit 2a8e2835f3

View file

@ -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)