summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-07-04 15:47:53 +0200
committerGuido Günther <agx@sigxcpu.org>2016-07-04 17:23:21 +0200
commit700e1645d47ab6be23850cb38c66604534a5f4e5 (patch)
tree546e3ce5c89b96c16c557d6c5e17929a8b6ab49c
parent1d4d4a2c581d263799a83e884df7ddd26727eb56 (diff)
config: Properly abort on config file parsing errors
instead of printing an exception on the console
-rwxr-xr-xgbp/scripts/config.py4
1 files changed, 4 insertions, 0 deletions
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: