From 22588a56f31a98d69816f1388a4caf6b88f9a842 Mon Sep 17 00:00:00 2001 From: Nir Izraeli Date: Thu, 27 Sep 2018 18:02:44 -0700 Subject: [PATCH] Revert using exc_info=True --- coveralls/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coveralls/git.py b/coveralls/git.py index ecd032d7..5b05e722 100644 --- a/coveralls/git.py +++ b/coveralls/git.py @@ -74,7 +74,7 @@ def git_info(): remotes = [{'name': line.split()[0], 'url': line.split()[1]} for line in run_command('git', 'remote', '-v').splitlines() if '(fetch)' in line] - except (CoverallsException, EnvironmentError): + except (CoverallsException, EnvironmentError) as ex: # When git is not available, try env vars as per Coveralls docs: # https://docs.coveralls.io/mercurial-support # Additionally, these variables have been extended by GIT_URL and @@ -95,7 +95,7 @@ def git_info(): if not all(head.values()): log.warning('Failed collecting git data. Are you running ' 'coveralls inside a git repository? Is git installed?', - exc_info=True) + exc_info=ex) return {} return {