Skip to content

Commit

Permalink
Use an empty string instead of None when the text of the set-value el…
Browse files Browse the repository at this point in the history
…ement is empty
  • Loading branch information
Honny1 committed Aug 8, 2023
1 parent 1b26699 commit c02e447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openscap_report/scap_results_parser/scap_results_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def validate(self, xsd_path):

def _get_ref_values(self):
return {
ref_value.get("idref"): ref_value.text
ref_value.get("idref"): ref_value.text if ref_value.text is not None else ""
for ref_value in self.root.findall('.//xccdf:set-value', NAMESPACES)
}

Expand Down

0 comments on commit c02e447

Please sign in to comment.