summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quoins/controllers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/quoins/controllers.py b/quoins/controllers.py
index a3a1c5d..888aa55 100644
--- a/quoins/controllers.py
+++ b/quoins/controllers.py
@@ -473,6 +473,10 @@ Comment:
473 473
474 @expose(template="genshi:quoinstemplates.index") 474 @expose(template="genshi:quoinstemplates.index")
475 def tag(self, tagname, start=0): 475 def tag(self, tagname, start=0):
476 try:
477 start=int(start)
478 except:
479 raise tg.exceptions.HTTPNotFound().exception
476 blog = DBSession.query(Blog).get(1) 480 blog = DBSession.query(Blog).get(1)
477 posts = blog.getPostsByTag(tagname) 481 posts = blog.getPostsByTag(tagname)
478 d = post_paginate(start, posts, self.post_paginate) 482 d = post_paginate(start, posts, self.post_paginate)