Skip to content

Commit

Permalink
Fix/mailers
Browse files Browse the repository at this point in the history
Hadrien Froger committed Jan 21, 2025
2 parents d64b80a + c51868d commit dd3bfb4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -35,6 +35,9 @@ def mail_with_events(headers = {}, &block)
body_text: Rails::Html::FullSanitizer.new.sanitize(message[:body])
)
end
rescue ActionView::MissingTemplate => e
Rails.logger.error("Missing template: #{e.message}")
ensure
mail_without_example_org(headers, &block)
end

0 comments on commit dd3bfb4

Please sign in to comment.