fix logic of rescue.
This commit is contained in:
parent
5f6756e8dd
commit
0d0a37b653
|
@ -94,11 +94,7 @@ module GitHubChangelogGenerator
|
||||||
issue[:actual_date] = issue[:closed_at]
|
issue[:actual_date] = issue[:closed_at]
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
begin
|
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
|
||||||
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
|
|
||||||
rescue
|
|
||||||
puts GH_RATE_LIMIT_EXCEEDED_MSG.yellow
|
|
||||||
end
|
|
||||||
issue[:actual_date] = commit[:author][:date]
|
issue[:actual_date] = commit[:author][:date]
|
||||||
rescue
|
rescue
|
||||||
puts "Warning: can't fetch commit #{event[:commit_id]} probably it referenced from another repo.".yellow
|
puts "Warning: can't fetch commit #{event[:commit_id]} probably it referenced from another repo.".yellow
|
||||||
|
|
Loading…
Reference in New Issue
Block a user