Skip to content

Commit

Permalink
handle standard github client errors then downloading issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Apr 4, 2016
1 parent 274beab commit 20c3995
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/github_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ def download_issues(token = nil)
issues.each do |issue|
GithubIssue.create_from_hash(self, issue)
end
rescue Octokit::Unauthorized, Octokit::InvalidRepository, Octokit::RepositoryUnavailable, Octokit::NotFound, Octokit::Conflict, Octokit::Forbidden, Octokit::InternalServerError, Octokit::BadGateway, Octokit::ClientError => e
nil
end

def self.create_from_github(full_name, token = nil)
Expand Down

0 comments on commit 20c3995

Please sign in to comment.