Skip to content

Commit

Permalink
fix: add condition to assert content is not None (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanomunarini committed Jan 10, 2024
1 parent 6509c28 commit 7a7a118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xml2rfc_compat/serializers/authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def create_author(contributor: Contributor) -> _Element:
initials = [
# We don’t expect trailing full stops in initials
# Workaround for bad source data, in effect
i.content.strip()
i.content.strip() if i.content else ""
for i in cast(
List[GenericStringValue],
as_list(name.given.formatted_initials or []),
Expand Down

0 comments on commit 7a7a118

Please sign in to comment.