forked from rDrama/rDrama
1
0
Fork 0

fix 500 in search.py

master
justcool393 2022-10-15 03:30:13 -07:00
parent 6465982580
commit c2b6c5903d
1 changed files with 1 additions and 1 deletions

View File

@ -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)