Bug 1497898 - Handle WindowsError trying to determine if git exists, r=ato

Depends on D8232

Differential Revision: https://phabricator.services.mozilla.com/D10743

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Graham 2018-11-02 16:46:35 +00:00
parent 347f4f5b34
commit 25da1ff728

View File

@ -62,7 +62,7 @@ class Git(object):
try:
return cls(git("rev-parse", "--show-toplevel").rstrip(), url_base, cache_path,
manifest_path=manifest_path, rebuild=rebuild)
except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, OSError):
return None
def _local_changes(self):