mirror of
https://github.com/Watchful1/PushshiftDumps.git
synced 2025-07-22 22:30:49 -04:00
More logging
This commit is contained in:
parent
15d574e198
commit
3c97f8ffcb
2 changed files with 4 additions and 2 deletions
|
@ -133,7 +133,8 @@ 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, prawcore.exceptions.RequestException):
|
||||
except (prawcore.exceptions.ServerError, prawcore.exceptions.RequestException) as err:
|
||||
log.info(f"No response from reddit api: {err} : {id_string}")
|
||||
time.sleep(2)
|
||||
return response['data']['children']
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue