Skip to content

Commit

Permalink
Gracefully andle repos with disabled issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Oct 19, 2016
1 parent 54219a8 commit cabcd8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/github_issue_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cabcd8c

Please sign in to comment.