Skip to content

Commit

Permalink
Fix VCS when git is not in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Feb 28, 2020
1 parent bb9582c commit d2fed3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poetry/vcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d2fed3d

Please sign in to comment.