diff --git a/app/controllers/concerns/nav_bar_profile_concern.rb b/app/controllers/concerns/nav_bar_profile_concern.rb index 96f4228b8..9201c2788 100644 --- a/app/controllers/concerns/nav_bar_profile_concern.rb +++ b/app/controllers/concerns/nav_bar_profile_concern.rb @@ -34,6 +34,10 @@ module NavBarProfileConcern 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) + + nil end # Fallback for shared controllers from user account