[PATCH] sb/reports.py: Remove spurious error check

Gedare Bloom gedare at rtems.org
Thu Apr 2 03:57:51 UTC 2020


The error path is taken when list-bsets or list-cfgs returns
true (meaning it listed them). So the error is invalid.
---
 source-builder/sb/reports.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/source-builder/sb/reports.py b/source-builder/sb/reports.py
index 86a4c3a..ab20671 100644
--- a/source-builder/sb/reports.py
+++ b/source-builder/sb/reports.py
@@ -934,8 +934,6 @@ def run(args):
                     raise error.general('config file not found: %s' % (_config))
                 r.create(config, outname)
             del r
-        else:
-            raise error.general('invalid config type: %s' % (config))
     except error.general as gerr:
         print(gerr)
         sys.exit(1)
-- 
2.17.1



More information about the devel mailing list