Catch this one too

This commit is contained in:
Watchful1 2023-08-29 19:03:17 -07:00
parent 92ac7b7a35
commit 1c89f42fbb

View file

@ -35,7 +35,7 @@ def query_pushshift(ids, bearer, object_type):
response = requests.get(url, headers={
'User-Agent': "In script by /u/Watchful1",
'Authorization': f"Bearer {bearer}"}, timeout=15)
except ConnectionError:
except (ConnectionError, requests.exceptions.ReadTimeout):
time.sleep(2)
continue
if response.status_code == 200: