diff options
author | Martin Czygan <martin@archive.org> | 2020-07-06 22:19:48 +0000 |
---|---|---|
committer | Martin Czygan <martin@archive.org> | 2020-07-06 22:19:48 +0000 |
commit | 1bc66d16f6cec4cf61592639815e0f69b993155a (patch) | |
tree | e0003154314fb1a832fdf8d24949292a1c1314db /python/fatcat_tools/importers/datacite.py | |
parent | 68cf95bd1d1588c0d3170b4032596756e07ae718 (diff) | |
parent | 46cdaee79737e8fc18de2fc3a8286d0622ec8cdf (diff) | |
download | fatcat-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/datacite.py')
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 2 |
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 |