diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-29 18:33:16 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-29 18:33:20 -0700 |
commit | 57c05973ed8e9648bcd95dcf0a43f64d4fe697d1 (patch) | |
tree | d5564aaa07145cd17c067d4c98ae4a0b5d703c5d | |
parent | 7c5ad2cb877c193d6fc6b638d220f15d3c921973 (diff) | |
download | fatcat-57c05973ed8e9648bcd95dcf0a43f64d4fe697d1.tar.gz fatcat-57c05973ed8e9648bcd95dcf0a43f64d4fe697d1.zip |
yet another pubmed weird DOI corner case
-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 0fc10e84..e8405dd4 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -380,7 +380,7 @@ class PubmedImporter(EntityImporter): doi = doi.string.lower().strip() if doi.startswith('doi:'): doi = doi[4:] - if not (doi.startswith('10.') and '/' in doi and doi.split('/')[1]): + if not (doi.startswith('10.') and '/' in doi and doi.split('/')[1]) and len(doi.split()) == 1: sys.stderr.write("BOGUS DOI: {}\n".format(doi)) doi = None |