diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/fatcat_tools/harvest/doi_registrars.py | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/python/fatcat_tools/harvest/doi_registrars.py b/python/fatcat_tools/harvest/doi_registrars.py index 5af5395e..19b32e18 100644 --- a/python/fatcat_tools/harvest/doi_registrars.py +++ b/python/fatcat_tools/harvest/doi_registrars.py @@ -122,6 +122,10 @@ class HarvestCrossrefWorker:                  self.producer.poll(0)                  time.sleep(30.0)                  continue +            if http_resp.status_code == 400: +                # https://is.gd/0nsEll, https://github.com/datacite/datacite/issues/897 +                print("skipping batch for {}, due to HTTP 400. Marking complete. Related: https://git.io/JeylE".format(date_str)) +                break              http_resp.raise_for_status()              resp = http_resp.json()              items = self.extract_items(resp) | 
