main
Bob Mottram 2024-05-29 15:00:58 +01:00
parent fd6638d255
commit 235a19f6e0
1 changed files with 5 additions and 1 deletions

View File

@ -156,6 +156,8 @@ def _get_replies_to_post(post_json_object: {},
if not replies_collection['first'].get('next'):
return result
items_list = []
if replies_collection['first'].get('items'):
items_list = replies_collection['first']['items']
if not items_list:
# if there are no items try the next one
@ -166,6 +168,8 @@ def _get_replies_to_post(post_json_object: {},
get_json(signing_priv_key_pem, session, next_page_id,
as_header, None, debug, __version__,
http_prefix, domain)
print('DEBUG: get_replies_to_post next replies_collection ' +
str(replies_collection))
if not get_json_valid(replies_collection):
return result
if not replies_collection.get('first'):