Add merge field

This commit is contained in:
Watchful1 2023-09-13 10:05:32 -07:00
parent 9595fa7e40
commit 91159f0509
3 changed files with 4 additions and 4 deletions

View file

@ -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']