sb/reports.py: Remove spurious error check

The error path is taken when list-bsets or list-cfgs returns
true (meaning it listed them). So the error is invalid.
This commit is contained in:
Gedare Bloom 2020-04-01 21:55:39 -06:00
parent 26a0568087
commit 54e08b8580

View File

@ -934,8 +934,6 @@ def run(args):
raise error.general('config file not found: %s' % (_config)) raise error.general('config file not found: %s' % (_config))
r.create(config, outname) r.create(config, outname)
del r del r
else:
raise error.general('invalid config type: %s' % (config))
except error.general as gerr: except error.general as gerr:
print(gerr) print(gerr)
sys.exit(1) sys.exit(1)