Check that json is returned

main
Bob Mottram 2022-12-28 10:28:15 +00:00
parent 0ebd3b285b
commit 656f7f9481
1 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,8 @@ def download_conversation_posts(session, http_prefix: str, base_dir: str,
if not post_json:
print(post_id + ' returned no json')
while post_json:
if not isinstance(post_json, dict):
break
if not has_object_dict(post_json):
if not post_json.get('attributedTo'):
print(str(post_json))