Skip to content

Commit

Permalink
fix(navbar): never fail request on broken navbar logic
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Sep 17, 2024
1 parent b68b340 commit 69808af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/concerns/nav_bar_profile_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def nav_bar_profile_from_referrer

controller_instance = controller_class.new
controller_instance.try(:nav_bar_profile)
rescue StandardError => e # we don't want broken logic in nav bar profile to fail the request
Sentry.capture_exception(e)

:guest
end

# Fallback for shared controllers from user account
Expand Down

0 comments on commit 69808af

Please sign in to comment.