summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 00:09:27 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-19 00:09:27 +0000
commit77d15aff0eaa7dd8a8ce988436a502c5ab6bb55b (patch)
tree7e5a828e67a98dbb3b7eb1f73b569d15bbcf0f45 /app/workers
parent8b5c2a4525819c6b18f422b4baa0f6568286909b (diff)
downloadgitlab-ce-77d15aff0eaa7dd8a8ce988436a502c5ab6bb55b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/error_tracking_issue_link_worker.rb4
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