From d2fed3de1864e4a972d3d00c7f63461fcc34737f Mon Sep 17 00:00:00 2001 From: adisbladis Date: Fri, 28 Feb 2020 20:15:40 +0000 Subject: [PATCH] Fix VCS when git is not in PATH --- poetry/vcs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry/vcs/__init__.py b/poetry/vcs/__init__.py index c13e4fa05ed..479daf8f8fa 100644 --- a/poetry/vcs/__init__.py +++ b/poetry/vcs/__init__.py @@ -20,7 +20,7 @@ def get_vcs(directory): # type: (Path) -> Git vcs = Git(Path(git_dir)) - except subprocess.CalledProcessError: + except (subprocess.CalledProcessError, OSError): vcs = None finally: os.chdir(str(working_dir))