From 700e1645d47ab6be23850cb38c66604534a5f4e5 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 4 Jul 2016 15:47:53 +0200 Subject: config: Properly abort on config file parsing errors instead of printing an exception on the console --- gbp/scripts/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gbp/scripts/config.py b/gbp/scripts/config.py index 3856c829..04dd9c4c 100755 --- a/gbp/scripts/config.py +++ b/gbp/scripts/config.py @@ -117,6 +117,10 @@ def main(argv): retval = 1 (options, args) = parse_args(argv) + + if options is None: + return retval + gbp.log.setup(options.color, options.verbose, options.color_scheme) if not args: -- cgit v1.2.3