From f3d75482a55b9403e03a4b46475e9deb1c2b082e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 26 Dec 2019 18:20:17 -0800 Subject: orcid: skip non-person ORCID records --- python/fatcat_tools/importers/orcid.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/fatcat_tools') 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 -- cgit v1.2.3