From 706a2d388f22ada2e3c88b7c58d3a74b1290a6a0 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 31 Jan 2020 01:44:11 +0100 Subject: datacite: do not skip records w/o date --- python/fatcat_tools/importers/datacite.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'python/fatcat_tools/importers') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 82ed5a0c..f1049909 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -319,8 +319,7 @@ class DataciteImporter(EntityImporter): release_date, release_month, release_year = parse_single_date(attributes.get('published')) if not any((release_date, release_month, release_year)): - print('[{}] skipping record w/o date: {}'.format(doi, obj), file=sys.stderr) - return False + print('[{}] record w/o date: {}'.format(doi, obj), file=sys.stderr) # Start with clear stages, e.g. published. TODO(martin): we could # probably infer a bit more from the relations, e.g. -- cgit v1.2.3