From 049d624be9712e04a2207e4b9692fe2f020e20ed Mon Sep 17 00:00:00 2001 From: Sergei Zharinov Date: Fri, 9 Sep 2022 15:01:31 +0300 Subject: [PATCH] fix(limits): Re-throw `ExternalHostError` on calling `getBranchPr` (#17721) --- lib/workers/repository/process/limits.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/workers/repository/process/limits.ts b/lib/workers/repository/process/limits.ts index f9525e5420..26489f4a83 100644 --- a/lib/workers/repository/process/limits.ts +++ b/lib/workers/repository/process/limits.ts @@ -60,7 +60,12 @@ export async function getConcurrentPrsRemaining( openPrs.push(pr); } } catch (err) { - // no-op + // istanbul ignore if + if (err instanceof ExternalHostError) { + throw err; + } else { + // no-op + } } } logger.debug(`${openPrs.length} PRs are currently open`);