Skip to content

Commit

Permalink
Update gimie/parsers/cff.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cyril Matthey-Doret <cyril.matthey-doret@epfl.ch>
  • Loading branch information
rmfranken and cmdoret authored Nov 28, 2024
1 parent 2a6272a commit a331a63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gimie/parsers/cff.py
Original file line number Diff line number Diff line change
@@ -52,8 +52,8 @@ def parse(self, data: bytes) -> Graph:
if not authors:
return extracted_cff_triples
for author in authors:
orcid = URIRef(author["orcid"])
if is_valid_orcid(orcid):
if is_valid_orcid(author["orcid"]):
orcid = URIRef(author["orcid"])
extracted_cff_triples.add(
(self.subject, SDO.author, URIRef(orcid))
)

0 comments on commit a331a63

Please sign in to comment.