print("Post does not contain body: "+str(post_id))
return
post_body=post_body["body"]
post_body_main=post_body["body"]
post_json=None
try:
post_json=json.loads(post_body)
post_json=json.loads(post_body_main)
except:
print("Post does not contain valid JSON: "+str(post_id))
self.send_comment(post_id,"An error occurred while parsing this post. Maybe it’s just not a submission, but if it should, then it is not well formatted.")