Skip to content

Commit

Permalink
Revert using exc_info=True
Browse files Browse the repository at this point in the history
  • Loading branch information
nirizr committed Sep 28, 2018
1 parent 1dd00a0 commit bef015a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coveralls/git.py
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit bef015a

Please sign in to comment.