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

View file

@ -155,7 +155,7 @@ field_actions = {
"contest_mode": FieldAction.OVERWRITE,
"created": FieldAction.OVERWRITE_IF_NONE,
"created_utc": FieldAction.OVERWRITE_IF_NONE,
"crosspost_parent": FieldAction.ALLOW,
"crosspost_parent": FieldAction.OVERWRITE_NOT_NONE,
"crosspost_parent_list": FieldAction.OVERWRITE_NOT_NONE,
"discussion_type": FieldAction.OVERWRITE_NOT_NONE,
"distinguished": FieldAction.OVERWRITE,