Skip to content

Commit 9c8722a

Browse files
committed
turn printed message
back into an error
1 parent f80842a commit 9c8722a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

contentctl/objects/detection_tags.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,7 @@ def sameTypeAndSubtypeNotPresent(
198198
error_string = "\n".join(
199199
str(e) for e in subtype_and_parent_exist_exceptions
200200
)
201-
# raise ValueError(
202-
# "Overlapping MITRE Attack ID Tactics and Subtactics may not be defined. "
203-
# f"Remove the tactic and keep the subtactic:\n{error_string}"
204-
# )
205-
print(
201+
raise ValueError(
206202
"Overlapping MITRE Attack ID Tactics and Subtactics may not be defined. "
207203
f"Remove the tactic and keep the subtactic:\n{error_string}"
208204
)

0 commit comments

Comments
 (0)