diff --git a/lib/datasource/nuget/v3.ts b/lib/datasource/nuget/v3.ts index 58ee7be2838aabfa136da062bdfcbb094027ecc5..8ebe08b48dd42c932c63bec9c219a3bee5d555f8 100644 --- a/lib/datasource/nuget/v3.ts +++ b/lib/datasource/nuget/v3.ts @@ -87,6 +87,10 @@ export async function getResourceUrl( await packageCache.set(cacheNamespace, resultCacheKey, serviceId, 60); return serviceId; } catch (err) { + // istanbul ignore if: not easy testable with nock + if (err instanceof ExternalHostError) { + throw err; + } logger.debug( { err, url }, `nuget registry failure: can't get ${resourceType}`