mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-03 00:11:23 +00:00
Unit tests and fixes.
Fixed issue with getCodeFrequency() where it would occasionally throw an exception when the statistics were still being generated. Added comment about throwing an exception as a possibility when 202 is returned.
This commit is contained in:
@@ -626,6 +626,7 @@ class Requester {
|
||||
// See https://developer.github.com/v3/repos/statistics/#a-word-about-caching
|
||||
if (responseCode == 202) {
|
||||
LOGGER.log(INFO, "The statistics are still being generated. Please try again in 5 seconds.");
|
||||
// Maybe throw an exception instead?
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user