aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-12-23 14:45:22 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-12-23 14:45:22 -0800
commit95c8a10d8bd424ac40267bf9677c2a7d776c828b (patch)
treebd3421aecb45f758dc6fac1cb3f90c499d82c450 /python/fatcat_tools/importers
parent1bb0a2181d5a30241d80279c5930eb753733f30b (diff)
downloadfatcat-95c8a10d8bd424ac40267bf9677c2a7d776c828b.tar.gz
fatcat-95c8a10d8bd424ac40267bf9677c2a7d776c828b.zip
pubmed: null doi parsing check
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/pubmed.py2
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:]