diff options
Diffstat (limited to 'app/workers/error_tracking_issue_link_worker.rb')
-rw-r--r-- | app/workers/error_tracking_issue_link_worker.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/workers/error_tracking_issue_link_worker.rb b/app/workers/error_tracking_issue_link_worker.rb index 9febd5cfecc..fa8af4f1822 100644 --- a/app/workers/error_tracking_issue_link_worker.rb +++ b/app/workers/error_tracking_issue_link_worker.rb @@ -63,6 +63,10 @@ class ErrorTrackingIssueLinkWorker # rubocop:disable Scalability/IdempotentWorke sentry_client .repos(organization_slug) .find { |repo| repo.project_id == issue.project_id && repo.status == 'active' } + rescue Sentry::Client::Error => e + logger.info("Unable to retrieve Sentry repo for organization #{organization_slug}, id #{sentry_issue_id}, with error: #{e.message}") + + nil end def organization_slug |