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 7be52ea commit 370ccb6Copy full SHA for 370ccb6
pytm/pytm.py
@@ -836,9 +836,9 @@ def _init_threats(self):
836
837
def _add_threats(self):
838
839
- for threat_file_path in self.threatsFile:
+ for threat_file in self.threatsFile:
840
try:
841
- with open(self.threatsFile, "r", encoding="utf8") as threat_file:
+ with open(threat_file, "r", encoding="utf8") as threat_file:
842
threats_json = json.load(threat_file)
843
except (FileNotFoundError, PermissionError, IsADirectoryError) as e:
844
raise UIError(
0 commit comments