Skip to content

Commit e9f738a

Browse files
committed
Bubble up SubProcessError to basecommand._main
1 parent ab3ee71 commit e9f738a

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
@@ -201,7 +202,8 @@ def _main(self, args):
201202
logger.debug('Exception information:', exc_info=True)
202203

203204
return PREVIOUS_BUILD_DIR_ERROR
204-
except (InstallationError, UninstallationError, BadCommand) as exc:
205+
except (InstallationError, UninstallationError, BadCommand,
206+
SubProcessError) as exc:
205207
logger.critical(str(exc))
206208
logger.debug('Exception information:', exc_info=True)
207209

0 commit comments

Comments
 (0)