From 93645e5cbe47f89be2dd34cb19e0c6164b3a9561 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 29 May 2020 15:36:31 +0200 Subject: harvest: log the failed url --- python/fatcat_tools/harvest/doi_registrars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools/harvest') diff --git a/python/fatcat_tools/harvest/doi_registrars.py b/python/fatcat_tools/harvest/doi_registrars.py index f84acb24..a45c8b41 100644 --- a/python/fatcat_tools/harvest/doi_registrars.py +++ b/python/fatcat_tools/harvest/doi_registrars.py @@ -143,7 +143,7 @@ class HarvestCrossrefWorker: time.sleep(30.0) continue if http_resp.status_code == 400: - print("skipping batch for {}, due to HTTP 400. Marking complete. Related: https://github.com/datacite/datacite/issues/897".format(date_str), + print("skipping batch for {}, due to HTTP 400 on {}. Marking complete. Related: https://github.com/datacite/datacite/issues/897".format(http_resp.url, date_str), file=sys.stderr) break http_resp.raise_for_status() -- cgit v1.2.3