diff --git a/lib/workers/repository/process/lookup/index.js b/lib/workers/repository/process/lookup/index.js index 9201b59034a3c7b9848de0e026926624fc84865a..cc98dd3a86f92260db2b6dddbeb3f54cdb22dd1d 100644 --- a/lib/workers/repository/process/lookup/index.js +++ b/lib/workers/repository/process/lookup/index.js @@ -154,12 +154,20 @@ async function lookupUpdates(config) { const buckets = {}; for (const toVersion of filteredVersions) { const update = { fromVersion, toVersion }; - update.newValue = getNewValue( - currentValue, - rangeStrategy, - fromVersion, - toVersion - ); + try { + update.newValue = getNewValue( + currentValue, + rangeStrategy, + fromVersion, + toVersion + ); + } catch (err) /* istanbul ignore next */ { + logger.warn( + { err, currentValue, rangeStrategy, fromVersion, toVersion }, + 'getNewValue error' + ); + update.newValue = currentValue; + } if (!update.newValue || update.newValue === currentValue) { if (!config.lockedVersion) { continue; // eslint-disable-line no-continue