def save_post(post: Post): try: table.put_item( Item=post.to_dict() ) except Exception as e: print(e) print(post) send_message('not-quite-dlq', post.to_json(), {"source": post.source})