[rtems-source-builder commit] sb/reports.py: Remove spurious error check

Gedare Bloom gedare at rtems.org
Thu Apr 2 21:40:28 UTC 2020


Module:    rtems-source-builder
Branch:    master
Commit:    54e08b85809969220cbb3d2a699987bf859017e6
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=54e08b85809969220cbb3d2a699987bf859017e6

Author:    Gedare Bloom <gedare at rtems.org>
Date:      Wed Apr  1 21:55:39 2020 -0600

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.

---

 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)



More information about the vc mailing list