diff --git a/src/pip/_internal/vcs/mercurial.py b/src/pip/_internal/vcs/mercurial.py index bc4b19c7294..d9b58cfe9a4 100644 --- a/src/pip/_internal/vcs/mercurial.py +++ b/src/pip/_internal/vcs/mercurial.py @@ -147,6 +147,7 @@ def controls_location(cls, location): show_stdout=False, on_returncode='raise', log_failed_cmd=False) + return True except (BadCommand, InstallationError): return False