--- parser.py 2023-02-24 13:02:06.899057381 +0100 +++ parser.py.new 2023-02-24 14:01:40.038846882 +0100 @@ -49,12 +49,13 @@ cwe = 0 description = "" classifications = issue.find('Classifications') - for content in classifications.findall('Classification'): - # detect CWE number - # TODO support more than one CWE number - if "kind" in content.attrib and "CWE" == content.attrib["kind"]: - cwe = MicrofocusWebinspectParser.get_cwe(content.attrib['identifier']) - description += "\n\n" + content.text + "\n" + if classifications is not None: + for content in classifications.findall('Classification'): + # detect CWE number + # TODO support more than one CWE number + if "kind" in content.attrib and "CWE" == content.attrib["kind"]: + cwe = MicrofocusWebinspectParser.get_cwe(content.attrib['identifier']) + description += "\n\n" + content.text + "\n" finding = Finding( title=issue.findtext('Name'), @@ -99,6 +100,8 @@ return "Medium" elif val == "3": return "High" + elif val == "4": + return "Critical" else: return "Info"