diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2020-07-07 00:07:02 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2020-07-07 00:07:02 +0200 |
commit | 46cdaee79737e8fc18de2fc3a8286d0622ec8cdf (patch) | |
tree | e0003154314fb1a832fdf8d24949292a1c1314db /python/fatcat_tools/importers | |
parent | 68cf95bd1d1588c0d3170b4032596756e07ae718 (diff) | |
download | fatcat-46cdaee79737e8fc18de2fc3a8286d0622ec8cdf.tar.gz fatcat-46cdaee79737e8fc18de2fc3a8286d0622ec8cdf.zip |
datacite: fix attribute error
refs: #44035
Diffstat (limited to 'python/fatcat_tools/importers')
-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 |