From 46cdaee79737e8fc18de2fc3a8286d0622ec8cdf Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 7 Jul 2020 00:07:02 +0200 Subject: datacite: fix attribute error refs: #44035 --- python/fatcat_tools/importers/datacite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 08c85b30..f005f988 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -731,7 +731,7 @@ class DataciteImporter(EntityImporter): nameType = c.get('nameType', '') or '' if nameType in ('', 'Personal'): creator_id = None - for nid in c.get('nameIdentifiers', []): + for nid in c.get('nameIdentifiers', []) or []: name_scheme = nid.get('nameIdentifierScheme', '') or '' if not name_scheme.lower() == "orcid": continue -- cgit v1.2.3