aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-12-26 18:20:17 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-12-26 18:20:54 -0800
commitf3d75482a55b9403e03a4b46475e9deb1c2b082e (patch)
tree5e5733c0dd6bb63a971246cd3f23bee16ee97af8
parentad39a2a347b356fe9bb7dd96d79e2fdbf4844b9c (diff)
downloadfatcat-f3d75482a55b9403e03a4b46475e9deb1c2b082e.tar.gz
fatcat-f3d75482a55b9403e03a4b46475e9deb1c2b082e.zip
orcid: skip non-person ORCID records
-rw-r--r--python/fatcat_tools/importers/orcid.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py
index 0a2c8610..554e052f 100644
--- a/python/fatcat_tools/importers/orcid.py
+++ b/python/fatcat_tools/importers/orcid.py
@@ -41,6 +41,10 @@ class OrcidImporter(EntityImporter):
obj is a python dict (parsed from json).
returns a CreatorEntity
"""
+
+ if not 'person' in obj:
+ return False
+
name = obj['person']['name']
if not name:
return None