From e23d62ed0fd65c5cde1d367569bee4f995b38571 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 Jan 2019 16:17:42 -0800 Subject: make ORCID importer skip no-names, not assert --- python/fatcat_tools/importers/orcid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/fatcat_tools/importers') diff --git a/python/fatcat_tools/importers/orcid.py b/python/fatcat_tools/importers/orcid.py index 02c9bf00..e64cdcc2 100644 --- a/python/fatcat_tools/importers/orcid.py +++ b/python/fatcat_tools/importers/orcid.py @@ -41,7 +41,8 @@ class OrcidImporter(EntityImporter): returns a CreatorEntity """ name = obj['person']['name'] - assert name + if not name: + return None extra = None given = value_or_none(name.get('given-names')) sur = value_or_none(name.get('family-name')) -- cgit v1.2.3