summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-05-29 13:46:32 +0000
committerMartin Czygan <martin@archive.org>2020-05-29 13:46:32 +0000
commit4def29d4e67f0aaece14527ba3ddf9dc07c626c6 (patch)
tree818c7fb3325a2930e87250b22c214c33c00ed993
parent84efbf54ee4fb0ed7bd36adb8e3fcce84f3f385c (diff)
parent93645e5cbe47f89be2dd34cb19e0c6164b3a9561 (diff)
downloadfatcat-4def29d4e67f0aaece14527ba3ddf9dc07c626c6.tar.gz
fatcat-4def29d4e67f0aaece14527ba3ddf9dc07c626c6.zip
Merge branch 'martin-datacite-harvest-log-output' into 'master'
harvest: log the failed url See merge request webgroup/fatcat!55
-rw-r--r--python/fatcat_tools/harvest/doi_registrars.py2
1 files changed, 1 insertions, 1 deletions
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()