Skip to content

Commit 53cc0d7

Browse files
committed
Bubble up SubProcessError to basecommand._main
1 parent eac1234 commit 53cc0d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pip/_internal/cli/base_command.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
CommandError,
2929
InstallationError,
3030
PreviousBuildDirError,
31+
SubProcessError,
3132
UninstallationError,
3233
)
3334
from pip._internal.utils.deprecation import deprecated
@@ -195,7 +196,8 @@ def _main(self, args):
195196
logger.debug('Exception information:', exc_info=True)
196197

197198
return PREVIOUS_BUILD_DIR_ERROR
198-
except (InstallationError, UninstallationError, BadCommand) as exc:
199+
except (InstallationError, UninstallationError, BadCommand,
200+
SubProcessError) as exc:
199201
logger.critical(str(exc))
200202
logger.debug('Exception information:', exc_info=True)
201203

0 commit comments

Comments
 (0)