aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-11-20 11:57:52 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-11-20 11:57:52 -0800
commit2819f21c8f2e14de67b4a3e62827deda5bcf76a0 (patch)
tree82aa3af7cf28989e6a9ec99bc77a237b76a64f3e /python/fatcat_tools/importers
parent6844071983fb1c9cfc0717247e933e23dead51ca (diff)
downloadfatcat-2819f21c8f2e14de67b4a3e62827deda5bcf76a0.tar.gz
fatcat-2819f21c8f2e14de67b4a3e62827deda5bcf76a0.zip
DOAJ: handle empty identifier 'id' case
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/doaj_article.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/doaj_article.py b/python/fatcat_tools/importers/doaj_article.py
index 30007857..bbc5e969 100644
--- a/python/fatcat_tools/importers/doaj_article.py
+++ b/python/fatcat_tools/importers/doaj_article.py
@@ -321,6 +321,8 @@ class DoajArticleImporter(EntityImporter):
pmid: Optional[str] = None
pmcid: Optional[str] = None
for id_obj in identifiers:
+ if not id_obj.get('id'):
+ continue
if id_obj['type'].lower() == 'doi':
doi = clean_doi(id_obj['id'])
elif id_obj['type'].lower() == 'pmid':