From 1930cc1ec8b17ae333c872411e5ca2d9e1ad5338 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 24 Jan 2022 03:11:56 +0200 Subject: [PATCH] cxvxc --- files/routes/comments.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 821a60c45a..7fbb6d936a 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -204,10 +204,7 @@ def api_comment(v): process_image(file, filename, 200) requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS, data={'files': [f"https://{request.host}/static/assets/images/badges/{badge.id}.webp"]}) elif v.id in (CARP_ID,AEVANN_ID) and parent_post.id == 37838: - try: marsey = loads(body.lower()) - except Exception as e: - print(body.lower(), flush=True) - return {"error": f"{e}"}, 500 + marsey = loads(body.lower()) name = marsey["name"] if not g.db.query(Marsey.name).filter_by(name=name).first(): marsey = Marsey(name=marsey["name"], author_id=marsey["author_id"], tags=marsey["tags"], count=0)