Skip to content

Commit

Permalink
Rely on T.unsafe to access #sentry_context
Browse files Browse the repository at this point in the history
  • Loading branch information
landongrindheim authored Mar 12, 2024
1 parent 5cb28bf commit f16011d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updater/lib/dependabot/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def capture_exception(error:, job: nil, dependency: nil, dependency_group: nil,
ErrorAttributes::CLASS => error.class.to_s,
ErrorAttributes::MESSAGE => error.message,
ErrorAttributes::BACKTRACE => error.backtrace&.join("\n"),
ErrorAttributes::FINGERPRINT => error.respond_to?(:sentry_context) ? error.sentry_context[:fingerprint] : nil,
ErrorAttributes::FINGERPRINT => error.respond_to?(:sentry_context) ? T.unsafe(error).sentry_context[:fingerprint] : nil, # rubocop:disable Layout/LineLength
ErrorAttributes::PACKAGE_MANAGER => job&.package_manager,
ErrorAttributes::JOB_ID => job&.id,
ErrorAttributes::DEPENDENCIES => dependency&.name || job&.dependencies,
Expand Down

0 comments on commit f16011d

Please sign in to comment.