Skip to content

Commit

Permalink
fix(manager/pip-compile): extractHeaderCommand error to warn message (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
not7cd committed Feb 15, 2024
1 parent bd9fb30 commit 09ad053
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/modules/manager/pip-compile/extract.ts
Expand Up @@ -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 */
Expand Down

0 comments on commit 09ad053

Please sign in to comment.