diff --git a/files/routes/search.py b/files/routes/search.py index a32db0a6a6..07795a0c5a 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)