From b6eb7eae950ed43aa2bc2751ca95f4388d7ffcc3 Mon Sep 17 00:00:00 2001 From: Matthew Burket Date: Fri, 8 Mar 2024 07:07:32 -0600 Subject: [PATCH] Fix deperation warning in ssg/build_derivatives.py --- ssg/build_derivatives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssg/build_derivatives.py b/ssg/build_derivatives.py index cae07b9c4e0..11c8adee30e 100644 --- a/ssg/build_derivatives.py +++ b/ssg/build_derivatives.py @@ -46,7 +46,7 @@ def add_cpes(elem, namespace, mapping): def add_cpe_item_to_dictionary(tree_root, product_yaml_path, cpe_ref, id_name, cpe_items_dir): cpe_list = tree_root.find(".//{%s}cpe-list" % (PREFIX_TO_NS["cpe-dict"])) - if cpe_list: + if cpe_list is not None: product_yaml = load_product_yaml(product_yaml_path) product_cpes = ProductCPEs() product_cpes.load_cpes_from_directory_tree(cpe_items_dir, product_yaml)