Skip to content

Commit 7b0abca

Browse files
comment out setting of cwe
1 parent 095e591 commit 7b0abca

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dojo/tools/tenable/utils.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
import contextlib
33

44

5-
def parse_cwe_from_ref(xref):
6-
if xref:
7-
for ref in xref.split(";"):
8-
key_value = ref.split(":")
9-
if len(key_value) == 2 and key_value[0] == "CWE":
10-
with contextlib.suppress(ValueError, TypeError):
11-
return int(key_value[1])
12-
return 0
5+
# def parse_cwe_from_ref(xref):
6+
# if xref:
7+
# for ref in xref.split(";"):
8+
# key_value = ref.split(":")
9+
# if len(key_value) == 2 and key_value[0] == "CWE":
10+
# with contextlib.suppress(ValueError, TypeError):
11+
# return int(key_value[1])
12+
# return 0

0 commit comments

Comments
 (0)