aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/post.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cgi/post.py b/cgi/post.py
index e27b971..6fc4bac 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -515,9 +515,11 @@ def threadPage(postid, mobile=False, timestamp=0):
else:
template_filename = "board.html"
- threads = [getThread(postid, mobile, timestamp)]
+ thread = getThread(postid, mobile, timestamp)
+ if not thread:
+ raise UserError, "El hilo no existe."
- return renderTemplate(template_filename, {"threads": threads, "replythread": postid}, mobile)
+ return renderTemplate(template_filename, {"threads": [thread], "replythread": postid}, mobile)
def dynamicRead(parentid, ranges, mobile=False):
import re