mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(github): handle 451 errors
This commit is contained in:
parent
8fd03d7ae8
commit
53dfe77aa4
1 changed files with 3 additions and 0 deletions
|
@ -237,6 +237,9 @@ async function initRepo({
|
|||
if (err.message === 'fork') {
|
||||
throw err;
|
||||
}
|
||||
if (err.message === 'Response code 451 (Unavailable for Legal Reasons)') {
|
||||
throw new Error('forbidden');
|
||||
}
|
||||
logger.info({ err }, 'Unknown GitHub initRepo error');
|
||||
throw err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue