Skip to content

Commit

Permalink
feat(cff): add warning when doi missing from cff
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdoret committed Feb 2, 2024
1 parent 159a65e commit 4d43f42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gimie/parsers/cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def get_cff_doi(data: bytes) -> Optional[str]:
doi_url = doi_to_url(cff["doi"])
# No doi in cff file
except (KeyError, TypeError):
logger.warn("CITATION.cff does not contain a 'doi' key.")
doi_url = None
# doi is malformed
except ValueError as err:
Expand Down

0 comments on commit 4d43f42

Please sign in to comment.