Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 3389:213d9c6e29c6 maint-0.8
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 18 Jul 2005 01:33:49 +0000 |
| parents | f6ecda229195 |
| children | 35d1176f004d |
line wrap: on
line diff
--- a/roundup/cgi/client.py Mon Jul 18 01:28:12 2005 +0000 +++ b/roundup/cgi/client.py Mon Jul 18 01:33:49 2005 +0000 @@ -1,4 +1,4 @@ -# $Id: client.py,v 1.211.2.2 2005-06-24 05:28:24 richard Exp $ +# $Id: client.py,v 1.211.2.3 2005-07-18 01:33:49 richard Exp $ """WWW request handler (also used in the stand-alone server). """ @@ -736,6 +736,9 @@ Actions may return a page (by default HTML) to return to the user, bypassing the usual template rendering. + + We explicitly catch Reject and ValueError exceptions and + present their messages to the user. ''' if self.form.has_key(':action'): action = self.form[':action'].value.lower() @@ -754,7 +757,7 @@ else: return action_klass(self).execute() - except ValueError, err: + except (ValueError, Reject), err: self.error_message.append(str(err)) def get_action_class(self, action_name):
