summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/ingest.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-05-22 16:10:49 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-05-22 16:10:52 -0700
commitd8cf02dbdc6848be4de2710e54f4463d702b6e7c (patch)
treebd40d1458397ed5aa539af70551148bb6403f20f /python/fatcat_tools/importers/ingest.py
parent50023c3a6dbbac3da8cbf444ef5b5e47850394e0 (diff)
downloadfatcat-d8cf02dbdc6848be4de2710e54f4463d702b6e7c.tar.gz
fatcat-d8cf02dbdc6848be4de2710e54f4463d702b6e7c.zip
importers: clarify handling of ApiException
One of these (in ingest importer pipeline) is an actual bug, the others are just changing the syntax to be more explicit/conservative. The ingest importer bug seems to have resulted in some bad file match imports; scale of impact is unknown.
Diffstat (limited to 'python/fatcat_tools/importers/ingest.py')
-rw-r--r--python/fatcat_tools/importers/ingest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py
index 7d5211fc..6cf1604b 100644
--- a/python/fatcat_tools/importers/ingest.py
+++ b/python/fatcat_tools/importers/ingest.py
@@ -108,6 +108,7 @@ class IngestFileResultImporter(EntityImporter):
elif err.status == 400:
self.counts['warn-extid-invalid'] += 1
continue
+ raise err
release_ident = release.ident
break
if self.use_glutton_match and not release_ident and row.get('grobid'):