We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b5c1a commit 7be52eaCopy full SHA for 7be52ea
pytm/pytm.py
@@ -1135,11 +1135,8 @@ def _process(self):
1135
tfs = [os.path.dirname(__file__) + "/threatlib/threats.json"]
1136
if result.threat_files:
1137
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
- )
+ self.threatsFile = tfs
+ self._init_threats()
1143
self.threatsFileInit = True
1144
1145
if result.debug:
0 commit comments