From 161103859c556593922682f2bb24e18cc5a48cae Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 27 Dec 2019 00:09:34 +0100 Subject: datacite: suppress debug-like language lookup miss message --- python/fatcat_tools/importers/datacite.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 0de15a18..a651b9fe 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -476,7 +476,9 @@ class DataciteImporter(EntityImporter): try: language = pycountry.languages.lookup(value).alpha_2 except (LookupError, AttributeError) as err: - print('[{}] language lookup miss for {}: {}'.format(doi, value, err), file=sys.stderr) + pass + # TODO(martin): Print this on debug level, only. + # print('[{}] language lookup miss for {}: {}'.format(doi, value, err), file=sys.stderr) # Abstracts appear in "attributes.descriptions[].descriptionType", some # of the observed values: "Methods", "TechnicalInfo", -- cgit v1.2.3