summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/harvest/doi_registrars.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-05-25 16:30:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-05-25 16:30:09 -0700
commit7aa19b92f0e7808a341aec8ae17485408dfae68c (patch)
treebaa906e271c6dfd6bd058024a289795916aba4ed /python/fatcat_tools/harvest/doi_registrars.py
parenta7a3cc1f8de8f38d98cf878282bd26ec4d76771f (diff)
downloadfatcat-7aa19b92f0e7808a341aec8ae17485408dfae68c.tar.gz
fatcat-7aa19b92f0e7808a341aec8ae17485408dfae68c.zip
small python lint fixes (no behavior change)
Diffstat (limited to 'python/fatcat_tools/harvest/doi_registrars.py')
-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 03773c15..553f4e7a 100644
--- a/python/fatcat_tools/harvest/doi_registrars.py
+++ b/python/fatcat_tools/harvest/doi_registrars.py
@@ -143,7 +143,7 @@ class HarvestCrossrefWorker:
# Datacite API returned HTTP 200, but JSON seemed unparseable.
# It might be a glitch, so we retry.
print("failed to decode body from {}: {}".format(http_resp.url, resp_body), file=sys.stderr)
- raise
+ raise exc
items = self.extract_items(resp)
count += len(items)
print("... got {} ({} of {}), HTTP fetch took {}".format(len(items), count,