fix(navbar): never fail request on broken navbar logic

This commit is contained in:
Colin Darie 2024-09-17 16:17:01 +02:00
parent b68b340d81
commit 79a1d9b99d
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

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