summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-07-06 22:19:48 +0000
committerMartin Czygan <martin@archive.org>2020-07-06 22:19:48 +0000
commit1bc66d16f6cec4cf61592639815e0f69b993155a (patch)
treee0003154314fb1a832fdf8d24949292a1c1314db /python/fatcat_tools/importers
parent68cf95bd1d1588c0d3170b4032596756e07ae718 (diff)
parent46cdaee79737e8fc18de2fc3a8286d0622ec8cdf (diff)
downloadfatcat-1bc66d16f6cec4cf61592639815e0f69b993155a.tar.gz
fatcat-1bc66d16f6cec4cf61592639815e0f69b993155a.zip
Merge branch 'martin-datacite-bugfix-sentry-44035' into 'master'
datacite: fix attribute error See merge request webgroup/fatcat!63
Diffstat (limited to 'python/fatcat_tools/importers')
-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