From: Andrea Righi Date: Mon, 14 Nov 2022 20:49:36 +0000 (+0100) Subject: annotations: avoid converting null results to kconfig format X-Git-Tag: v0.1~69 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e3782c39f2d79d03eea39f70635debefb9949a80;p=annotations.git annotations: avoid converting null results to kconfig format Signed-off-by: Andrea Righi --- diff --git a/annotations b/annotations index 138507d..9829dbc 100755 --- a/annotations +++ b/annotations @@ -55,7 +55,8 @@ def do_export(args): arg_fail('error: --export requires --arch') a = Annotation(args.file) conf = a.search_config(config=args.config, arch=args.arch, flavour=args.flavour) - print(a.to_config(conf)) + if conf: + print(a.to_config(conf)) def do_import(args): # Determine arch and flavour