From e3782c39f2d79d03eea39f70635debefb9949a80 Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Mon, 14 Nov 2022 21:49:36 +0100 Subject: [PATCH] annotations: avoid converting null results to kconfig format Signed-off-by: Andrea Righi --- annotations | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.31.1