diff --git a/lib/modules/manager/pip-compile/extract.ts b/lib/modules/manager/pip-compile/extract.ts index 64bc904e288280..535e888b8fa6d7 100644 --- a/lib/modules/manager/pip-compile/extract.ts +++ b/lib/modules/manager/pip-compile/extract.ts @@ -72,14 +72,11 @@ export async function extractAllPackageFiles( let compileArgs: PipCompileArgs; try { compileArgs = extractHeaderCommand(fileContent, fileMatch); - lockFileArgs.set(fileMatch, compileArgs); } catch (error) { - logger.warn( - { fileMatch, error }, - 'pip-compile: Failed to extract and parse command in output file header', - ); + logger.warn({ fileMatch }, `pip-compile: ${error.message}`); continue; } + lockFileArgs.set(fileMatch, compileArgs); for (const constraint in compileArgs.constraintsFiles) { // TODO(not7cd): handle constraints /* istanbul ignore next */