From 7de1a70c2af8301e34b6bcfab14dcd4f45e5ce0e Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 15 Jan 2020 15:43:45 +0100
Subject: [PATCH] fix(pip_setup): ignore non-fatal fatal names warning during
 extraction

---
 lib/manager/pip_setup/extract.ts | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/manager/pip_setup/extract.ts b/lib/manager/pip_setup/extract.ts
index a9954ee84e..c86d4ede77 100644
--- a/lib/manager/pip_setup/extract.ts
+++ b/lib/manager/pip_setup/extract.ts
@@ -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);
-- 
GitLab