Catch errors checking for conflicts, don't crash install

This commit is contained in:
Thomas Kluyver 2018-10-02 12:07:48 +02:00
parent 172a71b0cf
commit 3ec6775e1f
1 changed files with 5 additions and 1 deletions

View File

@ -472,7 +472,11 @@ class InstallCommand(RequirementCommand):
)
def _warn_about_conflicts(self, to_install):
package_set, _dep_info = check_install_conflicts(to_install)
try:
package_set, _dep_info = check_install_conflicts(to_install)
except Exception as e:
logger.error("Error checking for conflicts.", exc_info=True)
return
missing, conflicting = _dep_info
# NOTE: There is some duplication here from pip check