From 9957bcb84f519eb68c33a127fb02a2cbb3c85afc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 21 Jan 2022 21:58:42 +0200 Subject: [PATCH] fsdsfd --- files/routes/comments.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 4c4db6de6a..28eeb1cb85 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -460,7 +460,7 @@ def api_comment(v): if len(c.body) > 500: notifbody = c.body[:500] + '...' else: notifbody = c.body - try: + if PUSHER_ID: beams_client.publish_to_interests( interests=[f'{request.host}{parent.author.id}'], publish_body={ @@ -483,10 +483,6 @@ def api_comment(v): } }, ) - except Exception as e: - print(e) - print(c.id) - vote = CommentVote(user_id=v.id, comment_id=c.id,