From 81d0f66444ecece3ff3d734a4e2ba3053e4af765 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 21 Feb 2022 04:08:05 +0200 Subject: [PATCH] cvb --- files/routes/posts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index a63e2776b..8ae7927d0 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -766,7 +766,10 @@ def thumbnail_thread(pid): body_html = sanitize(f'New {word} mention: https://old.reddit.com{i["permalink"]}?context=89', noimages=True) - existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, distinguish_level=6, body_html=body_html, level=1).one_or_none() + try: existing_comment = db.query(Comment.id).filter_by(author_id=NOTIFICATIONS_ID, parent_submission=None, distinguish_level=6, body_html=body_html, level=1).one_or_none() + except: + print(body_html) + break if existing_comment: break