Skip to content

Commit 9dc0f1f

Browse files
committed
fixed wrong file in error message (thanks @raphaelahrens!)
1 parent b546efb commit 9dc0f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytm/pytm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def _add_threats(self):
842842
threats_json = json.load(threat_file)
843843
except (FileNotFoundError, PermissionError, IsADirectoryError) as e:
844844
raise UIError(
845-
e, f"while trying to open the the threat file ({self.threatsFile})."
845+
e, f"while trying to open the the threat file ({tf})."
846846
)
847847

848848
active_threats = (threat for threat in threats_json if "DEPRECATED" not in threat)

0 commit comments

Comments
 (0)