diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2019-12-31 14:23:51 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2019-12-31 14:23:51 +0100 |
commit | 02f5298be0da677e52621e7e6be682e07b9fce7e (patch) | |
tree | 4a9e302a9bf3ea795fad17b6461e8fda0e0a21e0 /python | |
parent | f51fe4e6572e30214003e7ec4b7444c07663543b (diff) | |
download | fatcat-02f5298be0da677e52621e7e6be682e07b9fce7e.tar.gz fatcat-02f5298be0da677e52621e7e6be682e07b9fce7e.zip |
datacite: ensure name schema is defined
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index f65482e7..f8080c10 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -291,7 +291,8 @@ class DataciteImporter(EntityImporter): if nameType == 'Personal' or nameType == '': creator_id = None for nid in c.get('nameIdentifiers', []): - if not nid.get('nameIdentifierScheme').lower() == "orcid": + name_scheme = nid.get('nameIdentifierScheme', '') or '' + if not name_scheme.lower() == "orcid": continue orcid = nid.get('nameIdentifier', '').replace('https://orcid.org/', '') |