From 2819f21c8f2e14de67b4a3e62827deda5bcf76a0 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 20 Nov 2020 11:57:52 -0800 Subject: DOAJ: handle empty identifier 'id' case --- python/fatcat_tools/importers/doaj_article.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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': -- cgit v1.2.3