From 048e10e79662fec42f26c30f791b20df7b67407e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 May 2020 20:36:33 -0700 Subject: more petabox timeout handling --- fatcat_scholar/sim_pipeline.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fatcat_scholar/sim_pipeline.py') diff --git a/fatcat_scholar/sim_pipeline.py b/fatcat_scholar/sim_pipeline.py index 5657cb7..6b52535 100644 --- a/fatcat_scholar/sim_pipeline.py +++ b/fatcat_scholar/sim_pipeline.py @@ -116,6 +116,9 @@ class SimPipeline(): continue try: full_issue = self.fetch_sim_issue(row) + except requests.exceptions.ConnectionError as e: + print(str(e), file=sys.stderr) + continue except requests.exceptions.ReadTimeout as e: print(str(e), file=sys.stderr) continue -- cgit v1.2.3