Remove isinstance check for status

This commit is contained in:
Devesh Kumar Singh 2020-05-25 19:20:16 +05:30
parent 1e67c3cc20
commit 2bcbc52b2c
1 changed files with 1 additions and 4 deletions

View File

@ -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)