Skip to content

Commit

Permalink
fix: coerce to empty list if is None
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanomunarini committed Aug 3, 2023
1 parent 23546d6 commit 0a60fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bibxml/xml2rfc_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def resolve(self) -> BibliographicItem:
raise RefNotFoundError()
else:
# https://github.com/ietf-tools/bibxml-service/issues/332
link = as_list(result.bibitem.link)
link = as_list(result.bibitem.link or [])
for index, _ in enumerate(link):
parsed_link = urlparse(link[index].content)
if parsed_link.netloc == "dx.doi.org":
Expand Down

0 comments on commit 0a60fba

Please sign in to comment.