lib/raven/integrations/rails/active_job.rb in sentry-raven-2.6.1 vs lib/raven/integrations/rails/active_job.rb in sentry-raven-2.6.2
- old
+ new
@@ -16,11 +16,12 @@
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))
+ unless already_supported_by_specific_integration?(job)
+ Raven.capture_exception(exception, :extra => raven_context(job))
+ end
raise exception
ensure
Context.clear!
BreadcrumbBuffer.clear!
end