Skip to content

Commit

Permalink
fix(exceptions): fix py2 support
Browse files Browse the repository at this point in the history
Turns out FileNotFoundError was introduced more recently than I
thought...
  • Loading branch information
TheKevJames committed Jun 2, 2019
1 parent a83a8f3 commit 5237b52
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, FileNotFoundError) as ex:
except (CoverallsException, OSError) 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 5237b52

Please sign in to comment.