Skip to content

Commit

Permalink
fix(git): fix case where git is missing
Browse files Browse the repository at this point in the history
As described in #198, we seem to have been catching the wrong exceptions
here. This should now properly capture the case where git is completely
missing and fallback to checking the environment variables.
  • Loading branch information
TheKevJames committed Jun 2, 2019
1 parent d879b8a commit 5bbceaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coveralls/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,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) as ex:
except (CoverallsException, EnvironmentError, FileNotFoundError) 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 Down

0 comments on commit 5bbceaa

Please sign in to comment.