Skip to content

Commit 0f3a2ca

Browse files
committed
fix: affiliations extractor should actually return something
1 parent 7ce6abd commit 0f3a2ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

codemeticulous/extract.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def affiliations(self) -> Optional[list[tuple[str, Optional[str]]]]:
142142
affiliation_list.append((affiliation.name, identifier))
143143
elif isinstance(affiliation, str):
144144
affiliation_list.append((affiliation, None))
145+
return affiliation_list or None
145146

146147
@property
147148
def orcid(self) -> Optional[str]:

0 commit comments

Comments
 (0)