Bubble up SubProcessError to basecommand._main

This commit is contained in:
Devesh Kumar Singh 2020-05-15 09:38:53 +05:30
parent ab3ee7191c
commit e9f738a3da
1 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ from pip._internal.exceptions import (
CommandError, CommandError,
InstallationError, InstallationError,
PreviousBuildDirError, PreviousBuildDirError,
SubProcessError,
UninstallationError, UninstallationError,
) )
from pip._internal.utils.deprecation import deprecated from pip._internal.utils.deprecation import deprecated
@ -201,7 +202,8 @@ class Command(CommandContextMixIn):
logger.debug('Exception information:', exc_info=True) logger.debug('Exception information:', exc_info=True)
return PREVIOUS_BUILD_DIR_ERROR return PREVIOUS_BUILD_DIR_ERROR
except (InstallationError, UninstallationError, BadCommand) as exc: except (InstallationError, UninstallationError, BadCommand,
SubProcessError) as exc:
logger.critical(str(exc)) logger.critical(str(exc))
logger.debug('Exception information:', exc_info=True) logger.debug('Exception information:', exc_info=True)