diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2019-12-27 00:09:34 +0100 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2019-12-28 23:07:32 +0100 |
commit | 161103859c556593922682f2bb24e18cc5a48cae (patch) | |
tree | 92bfd8074cfd3b35263740fbacfcfefee69c77f3 | |
parent | 9a2a7e35948e350aaf40b07d4d4427d288970d3f (diff) | |
download | fatcat-161103859c556593922682f2bb24e18cc5a48cae.tar.gz fatcat-161103859c556593922682f2bb24e18cc5a48cae.zip |
datacite: suppress debug-like language lookup miss message
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 4 |
1 files changed, 3 insertions, 1 deletions
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", |