summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <corvus@gnu.org>2010-04-03 17:50:18 (GMT)
committerJames E. Blair <corvus@gnu.org>2010-04-03 17:50:18 (GMT)
commit7f90d420d1096b4daf9fb5e6269fa0dedec1b5db (patch)
tree41b25059f4ad7d6f85d696132accfaefa3a2d915
parent55909aa04365d4cada8143ea4af95cb9626cf7b4 (diff)
Handle bad arguments to author method.
-rw-r--r--quoins/controllers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/quoins/controllers.py b/quoins/controllers.py
index 888aa55..bb7bcfe 100644
--- a/quoins/controllers.py
+++ b/quoins/controllers.py
@@ -509,6 +509,10 @@ Comment:
509 509
510 @expose(template="genshi:quoinstemplates.index") 510 @expose(template="genshi:quoinstemplates.index")
511 def author(self, name='', start=0): 511 def author(self, name='', start=0):
512 try:
513 start=int(start)
514 except:
515 raise tg.exceptions.HTTPNotFound().exception
512 blog = DBSession.query(Blog).get(1) 516 blog = DBSession.query(Blog).get(1)
513 517
514 if not name: 518 if not name: