Skip to content

Commit

Permalink
fix(pip_setup): ignore non-fatal fatal names warning during extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jan 15, 2020
1 parent 114532e commit 7de1a70
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/manager/pip_setup/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ export async function extractSetupFile(
});
// istanbul ignore if
if (res.stderr) {
const stderr = res.stderr.replace(/.*\n\s*import imp/, '').trim();
const stderr = res.stderr
.replace(/.*\n\s*import imp/, '')
.trim()
.replace('fatal: No names found, cannot describe anything.', '');
if (stderr.length) {
logger.warn(
{ stdout: res.stdout, stderr: res.stderr },
'Error in read setup file'
);
logger.warn({ stdout: res.stdout, stderr }, 'Error in read setup file');
}
}
return JSON.parse(res.stdout);
Expand Down

0 comments on commit 7de1a70

Please sign in to comment.