From cabcd8c0d441684d27c5644027fea5f9142dab49 Mon Sep 17 00:00:00 2001 From: Andrew Nesbitt Date: Wed, 19 Oct 2016 13:46:49 +0100 Subject: [PATCH] Gracefully andle repos with disabled issues --- app/workers/github_issue_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/github_issue_worker.rb b/app/workers/github_issue_worker.rb index 1bbdeccbc..5584a1da6 100644 --- a/app/workers/github_issue_worker.rb +++ b/app/workers/github_issue_worker.rb @@ -9,7 +9,7 @@ def perform(name_with_owner, issue_number, token = nil) return unless repo issue_hash = AuthToken.fallback_client(token).issue(repo.full_name, issue_number) GithubIssue.create_from_hash(repo, issue_hash) - rescue Octokit::NotFound + rescue Octokit::NotFound, Octokit::ClientError nil end end