aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-31 12:09:36 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-31 12:09:36 -0800
commit1cc32fcc46f2c7ff7a05ca81c6925ce4ef92c03f (patch)
treeff94179cf55081b46d1cccab3b0c07612cf41395 /fatcat_scholar
parent5211f3d70a878d32d8381aed9d7b582d9d439c3f (diff)
downloadfatcat-scholar-1cc32fcc46f2c7ff7a05ca81c6925ce4ef92c03f.tar.gz
fatcat-scholar-1cc32fcc46f2c7ff7a05ca81c6925ce4ef92c03f.zip
sim: catch MaxRetryError
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/sim_pipeline.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/sim_pipeline.py b/fatcat_scholar/sim_pipeline.py
index 8d67762..e5e2a02 100644
--- a/fatcat_scholar/sim_pipeline.py
+++ b/fatcat_scholar/sim_pipeline.py
@@ -3,6 +3,7 @@ import sys
import sqlite3
import argparse
from typing import List, Dict, Optional, Any
+import urllib3.exceptions
import requests
import sentry_sdk
@@ -161,6 +162,7 @@ class SimPipeline:
requests.exceptions.ConnectionError,
requests.exceptions.Timeout,
requests.exceptions.RetryError,
+ urllib3.exceptions.MaxRetryError,
) as e:
print(str(e), file=sys.stderr)
continue