lib/sentry/sidekiq/error_handler.rb in sentry-sidekiq-5.9.0 vs lib/sentry/sidekiq/error_handler.rb in sentry-sidekiq-5.10.0
- old
+ new
@@ -23,9 +23,11 @@
Sentry::Sidekiq.capture_exception(
ex,
contexts: { sidekiq: context_filter.filtered },
hint: { background: false }
)
+ ensure
+ scope&.clear
end
private
def retryable?(context)