From 5237b52c0303a97c62fbe7474adec78a05dc1def Mon Sep 17 00:00:00 2001 From: Kevin James Date: Sat, 1 Jun 2019 17:43:11 -0700 Subject: [PATCH] fix(exceptions): fix py2 support Turns out FileNotFoundError was introduced more recently than I thought... --- coveralls/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coveralls/git.py b/coveralls/git.py index 702bcab7..f7f8dd67 100644 --- a/coveralls/git.py +++ b/coveralls/git.py @@ -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