Skip to content
Snippets Groups Projects
Commit 21c25210 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: reduce setup.py warnings

parent 46f2c582
No related branches found
No related tags found
No related merge requests found
...@@ -58,12 +58,10 @@ async function extractSetupFile(content, packageFile, config) { ...@@ -58,12 +58,10 @@ async function extractSetupFile(content, packageFile, config) {
err.message.includes('No such file or directory') && err.message.includes('No such file or directory') &&
!config.gitFs !config.gitFs
) { ) {
logger.debug({ err }, 'setup.py extraction error'); logger.warn(
throw new Error(
'File not found error when extracting setup.py. Ask your Renovate administrator to enable gitFs and try again' 'File not found error when extracting setup.py. Ask your Renovate administrator to enable gitFs and try again'
); );
} }
logger.warn({ err }, 'Error extracting setup.py');
throw err; throw err;
} }
// istanbul ignore if // istanbul ignore if
...@@ -82,7 +80,7 @@ async function extractPackageFile(content, packageFile, config) { ...@@ -82,7 +80,7 @@ async function extractPackageFile(content, packageFile, config) {
try { try {
setup = await extractSetupFile(content, packageFile, config); setup = await extractSetupFile(content, packageFile, config);
} catch (err) { } catch (err) {
logger.warn({ err }, 'Failed to read setup file'); logger.warn({ err }, 'Failed to read setup.py file');
return null; return null;
} }
const requires = []; const requires = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment