Skip to content

Commit

Permalink
fix validation on deprecated content
Browse files Browse the repository at this point in the history
  • Loading branch information
maimorag committed Jun 19, 2024
1 parent ef61fbb commit 46a1024
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ class ReleaseNoteHeaderValidator(BaseValidator[ContentTypes]):
def is_valid(self, content_items: Iterable[ContentTypes]) -> List[ValidationResult]:
validator_results: List[ValidationResult] = []
for content_item in content_items:
if content_item.pack_metadata_dict.get("hidden"):
if content_item.pack_metadata_dict and content_item.pack_metadata_dict.get(
"hidden"
):
continue
(
invalid_headers_content_type,
Expand Down

0 comments on commit 46a1024

Please sign in to comment.