diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-23 14:45:22 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-23 14:45:22 -0800 |
commit | 95c8a10d8bd424ac40267bf9677c2a7d776c828b (patch) | |
tree | bd3421aecb45f758dc6fac1cb3f90c499d82c450 | |
parent | 1bb0a2181d5a30241d80279c5930eb753733f30b (diff) | |
download | fatcat-95c8a10d8bd424ac40267bf9677c2a7d776c828b.tar.gz fatcat-95c8a10d8bd424ac40267bf9677c2a7d776c828b.zip |
pubmed: null doi parsing check
-rw-r--r-- | python/fatcat_tools/importers/pubmed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index aeac43b5..64f5a024 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -376,7 +376,7 @@ class PubmedImporter(EntityImporter): identifiers = pubmed.ArticleIdList pmid = medline.PMID.string.strip() doi = identifiers.find("ArticleId", IdType="doi") - if doi: + if doi and doi.string: doi = doi.string.lower().strip() if doi.startswith('doi:'): doi = doi[4:] |