From efa9bdd8ee2d33118c605fba18ab3ce6f53f0d17 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 22 Jul 2021 16:54:19 +0200 Subject: [PATCH] sneed --- ruqqus/routes/comments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ruqqus/routes/comments.py b/ruqqus/routes/comments.py index 6d7800c03..0af996890 100644 --- a/ruqqus/routes/comments.py +++ b/ruqqus/routes/comments.py @@ -71,7 +71,8 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None): post._preloaded_comments = [comment] # context improver - context = int(request.args.get("context", 0)) + try: context = int(request.args.get("context", 0)) + except: context = 0 comment_info = comment c = comment while context > 0 and not c.is_top_level: