print("Post already failed with same body: "+str(post_id))
return
post_json=None
try:
post_json=json.loads(post_body_main)
except:
print("Post does not contain valid JSON: "+str(post_id))
self.mark_post_as_failed(post_id,post_body_main)
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.")