From c2b6c5903dc0d084653b68bb18679327f8f98841 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 15 Oct 2022 03:30:13 -0700 Subject: [PATCH] fix 500 in search.py --- files/routes/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/search.py b/files/routes/search.py index a32db0a6a..07795a0c5 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -191,7 +191,7 @@ def searchcomments(v): if 'post' in criteria: try: post = int(criteria['post']) - except: abort(404, f"Post with id {post} does not exist.") + except: abort(404) comments = comments.filter(Comment.parent_submission == post)