Skip to content

Commit 7be52ea

Browse files
author
izar tarandach
committed
fix: Correct threatsFile initialization to accept a list of strings
1 parent e0b5c1a commit 7be52ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pytm/pytm.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,11 +1135,8 @@ def _process(self):
11351135
tfs = [os.path.dirname(__file__) + "/threatlib/threats.json"]
11361136
if result.threat_files:
11371137
tfs.extend(result.threat_files)
1138-
self.threatsFile = varStrings(
1139-
tfs,
1140-
onSet=lambda i, v: i._init_threats(),
1141-
doc="JSON file with custom threats",
1142-
)
1138+
self.threatsFile = tfs
1139+
self._init_threats()
11431140
self.threatsFileInit = True
11441141

11451142
if result.debug:

0 commit comments

Comments
 (0)