diff --git a/drama/routes/posts.py b/drama/routes/posts.py index a6bf1a41d4..d95ded12c8 100644 --- a/drama/routes/posts.py +++ b/drama/routes/posts.py @@ -67,7 +67,9 @@ def post_id(pid, anything=None, v=None): try: pid = int(pid) - except: pid = int(pid, 36) + except: + try: pid = int(pid, 36) + except: abort(404) post = get_post(pid, v=v)