mirror of https://github.com/pypa/pip
Remove isinstance check for status
This commit is contained in:
parent
1e67c3cc20
commit
2bcbc52b2c
|
@ -193,10 +193,7 @@ class Command(CommandContextMixIn):
|
|||
|
||||
try:
|
||||
status = self.run(options, args)
|
||||
# FIXME: all commands should return an exit status
|
||||
# and when it is done, isinstance is not needed anymore
|
||||
if isinstance(status, int):
|
||||
return status
|
||||
return status
|
||||
except PreviousBuildDirError as exc:
|
||||
logger.critical(str(exc))
|
||||
logger.debug('Exception information:', exc_info=True)
|
||||
|
|
Loading…
Reference in New Issue