mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-28 09:04:10 -04:00
Add merge field
This commit is contained in:
parent
9595fa7e40
commit
91159f0509
3 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ def query_reddit(ids, reddit, object_type):
|
|||
try:
|
||||
response = reddit.request(method="GET", path=endpoints.API_PATH["info"], params={"id": id_string})
|
||||
break
|
||||
except prawcore.exceptions.ServerError:
|
||||
except (prawcore.exceptions.ServerError, prawcore.exceptions.RequestException):
|
||||
time.sleep(2)
|
||||
return response['data']['children']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue