mirror of https://gitlab.com/bashrc2/epicyon
Check that json is returned
parent
0ebd3b285b
commit
656f7f9481
|
@ -131,6 +131,8 @@ def download_conversation_posts(session, http_prefix: str, base_dir: str,
|
||||||
if not post_json:
|
if not post_json:
|
||||||
print(post_id + ' returned no json')
|
print(post_id + ' returned no json')
|
||||||
while post_json:
|
while post_json:
|
||||||
|
if not isinstance(post_json, dict):
|
||||||
|
break
|
||||||
if not has_object_dict(post_json):
|
if not has_object_dict(post_json):
|
||||||
if not post_json.get('attributedTo'):
|
if not post_json.get('attributedTo'):
|
||||||
print(str(post_json))
|
print(str(post_json))
|
||||||
|
|
Loading…
Reference in New Issue