diff options
| author | James E. Blair <corvus@gnu.org> | 2010-04-03 10:50:18 -0700 | 
|---|---|---|
| committer | James E. Blair <corvus@gnu.org> | 2010-04-03 10:50:18 -0700 | 
| commit | 7f90d420d1096b4daf9fb5e6269fa0dedec1b5db (patch) | |
| tree | 41b25059f4ad7d6f85d696132accfaefa3a2d915 | |
| parent | 55909aa04365d4cada8143ea4af95cb9626cf7b4 (diff) | |
Handle bad arguments to author method.
| -rw-r--r-- | quoins/controllers.py | 4 | 
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: | 
