VcsRepository: do not continue when receiving 429 rate limit exception (#10132)
parent
90d112d98a
commit
edccad4e05
|
@ -282,7 +282,7 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
|
||||||
if ($e->getCode() === 404) {
|
if ($e->getCode() === 404) {
|
||||||
$this->emptyReferences[] = $identifier;
|
$this->emptyReferences[] = $identifier;
|
||||||
}
|
}
|
||||||
if ($e->getCode() === 401 || $e->getCode() === 403) {
|
if (in_array($e->getCode(), array(401, 403, 429), true)) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -371,7 +371,7 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
|
||||||
if ($e->getCode() === 404) {
|
if ($e->getCode() === 404) {
|
||||||
$this->emptyReferences[] = $identifier;
|
$this->emptyReferences[] = $identifier;
|
||||||
}
|
}
|
||||||
if ($e->getCode() === 401 || $e->getCode() === 403) {
|
if (in_array($e->getCode(), array(401, 403, 429), true)) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
if ($isVeryVerbose) {
|
if ($isVeryVerbose) {
|
||||||
|
|
Loading…
Reference in New Issue