fix: fix crash when github api rate exceeded

This commit is contained in:
Petr Korolev 2015-06-12 10:03:47 +03:00
parent e114901157
commit adab012de4

View File

@ -166,10 +166,10 @@ Make sure, that you push tags to remote repo via 'git push --tags'".yellow
obj = @github.issues.events.list user: @options[:user],
repo: @options[:project],
issue_number: issue["number"]
issue[:events] = obj.body
rescue
Helper.log.warn GH_RATE_LIMIT_EXCEEDED_MSG.yellow
end
issue[:events] = obj.body
print_in_same_line("Fetching events for issues and PR: #{i + 1}/#{issues.count}")
i += 1
end