Skip to content

Commit ba4a8bf

Browse files
committed
rnacentral_pipeline\databases\europepmc\stream.py broad-exception-caught
The function fallback calls fetch.lookup (in line 41). I changed to (fetch.UnknownReference, fetch.TooManyPublications) as discussed. Please note that I could not find where TooManyPublications is defined
1 parent d458b84 commit ba4a8bf

File tree

1 file changed

+1
-1
lines changed
  • rnacentral_pipeline/databases/europepmc

1 file changed

+1
-1
lines changed

rnacentral_pipeline/databases/europepmc/stream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def fallback(data):
4040
try:
4141
ref = fetch.lookup(id_ref)
4242
yield id_ref, ref, rows
43-
except Exception:
43+
except (fetch.UnknownReference, fetch.TooManyPublications):
4444
pass
4545

4646

0 commit comments

Comments
 (0)