aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-07-07 00:07:02 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-07-07 00:07:02 +0200
commit46cdaee79737e8fc18de2fc3a8286d0622ec8cdf (patch)
treee0003154314fb1a832fdf8d24949292a1c1314db
parent68cf95bd1d1588c0d3170b4032596756e07ae718 (diff)
downloadfatcat-46cdaee79737e8fc18de2fc3a8286d0622ec8cdf.tar.gz
fatcat-46cdaee79737e8fc18de2fc3a8286d0622ec8cdf.zip
datacite: fix attribute error
refs: #44035
-rw-r--r--python/fatcat_tools/importers/datacite.py2
1 files changed, 1 insertions, 1 deletions
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