We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d8fc6e commit fe456e4Copy full SHA for fe456e4
sentry-rails/lib/sentry/rails/capture_exceptions.rb
@@ -27,6 +27,7 @@ def transaction_op
27
28
def capture_exception(exception, env)
29
# the exception will be swallowed by ShowExceptions middleware
30
+ return unless Sentry.initialized?
31
return if show_exceptions?(exception, env) && !Sentry.configuration.rails.report_rescued_exceptions
32
33
Sentry::Rails.capture_exception(exception).tap do |event|
0 commit comments