lib/raven/integrations/rails/active_job.rb in sentry-raven-2.6.0 vs lib/raven/integrations/rails/active_job.rb in sentry-raven-2.6.1
- old
+ new
@@ -15,9 +15,10 @@
end
def capture_and_reraise_with_sentry(job, block)
block.call
rescue Exception => exception # rubocop:disable Lint/RescueException
+ return if rescue_with_handler(exception)
return if already_supported_by_specific_integration?(job)
Raven.capture_exception(exception, :extra => raven_context(job))
raise exception
ensure
Context.clear!