mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-03 19:06:39 -04:00
Wrong exception
This commit is contained in:
parent
1c89f42fbb
commit
dd838aae3e
1 changed files with 1 additions and 1 deletions
|
@ -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, requests.exceptions.ReadTimeout):
|
||||
except (requests.exceptions.ConnectionError, requests.exceptions.ReadTimeout):
|
||||
time.sleep(2)
|
||||
continue
|
||||
if response.status_code == 200:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue