diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-12-14 18:04:09 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-12-14 18:12:07 +0100 |
| commit | 1ec91703ecdb4c369212fabe2ca0a68f040b7697 (patch) | |
| tree | da0d7e8233511dd4face9d35b23add875b86e8e3 /genconfig.py | |
| parent | c2414bdf64c03470061d280a7d1b5ea97bab3185 (diff) | |
Add Kconfig.__init__() helper flag for suppressing tracebacks
Tools that don't use standard_kconfig() currently generate spammy
tracebacks for e.g. syntax errors.
Add a suppress_traceback flag to Kconfig.__init__() for catching
"expected" exceptions and printing them to stderr and exiting with
status 1. Use it to make all tools consistently hide tracebacks.
Diffstat (limited to 'genconfig.py')
| -rwxr-xr-x | genconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genconfig.py b/genconfig.py index 7d701ff..3482673 100755 --- a/genconfig.py +++ b/genconfig.py @@ -109,7 +109,7 @@ only supported for backwards compatibility). args = parser.parse_args() - kconf = kconfiglib.Kconfig(args.kconfig_filename) + kconf = kconfiglib.Kconfig(args.kconfig_filename, suppress_traceback=True) kconf.load_config() if args.header_path is None: |
