From d8cf02dbdc6848be4de2710e54f4463d702b6e7c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 22 May 2020 16:10:49 -0700 Subject: 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. --- python/fatcat_tools/importers/pubmed.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python/fatcat_tools/importers/pubmed.py') diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index abcb21d9..3d3e3a8c 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -782,6 +782,7 @@ class PubmedImporter(EntityImporter): # NOTE: API behavior might change in the future? if "release_edit_editgroup_id_ident_id_key" in err.body: self.counts['skip-update-conflict'] += 1 + return False else: raise err finally: -- cgit v1.2.3