Skip to content

Commit

Permalink
Rescue errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brenogazzola committed May 5, 2024
1 parent 80e2066 commit 1845e81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/helpers/vitals_image/tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def vitals_image_tag(source, options = {})
url = vitals_image_url(optimizer.src, optimizer.html_options)
image_tag url, optimizer.html_options
end
rescue StandardError => error
Sentry.capture_exception(error) if Rails.env.production?
image_tag Base::TINY_GIF
end

def vitals_image_url(source, options = {})
Expand Down

0 comments on commit 1845e81

Please sign in to comment.