Skip to content

Commit 5ddfcfa

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 8b57479 commit 5ddfcfa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Fixed:
2727
- refactored hyperdb.rawToHyperdb, allowing a number of improvements
2828
(thanks Ralf Schlatterbeck)
2929
- don't try to set a timeout for IMAPS (thanks Paul Jimenez)
30+
- present Reject exception messages to web users (sf bug 1237685)
3031

3132

3233
2005-05-02 0.8.3

roundup/cgi/client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.211.2.2 2005-06-24 05:28:24 richard Exp $
1+
# $Id: client.py,v 1.211.2.3 2005-07-18 01:33:49 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -736,6 +736,9 @@ def handle_action(self):
736736
737737
Actions may return a page (by default HTML) to return to the
738738
user, bypassing the usual template rendering.
739+
740+
We explicitly catch Reject and ValueError exceptions and
741+
present their messages to the user.
739742
'''
740743
if self.form.has_key(':action'):
741744
action = self.form[':action'].value.lower()
@@ -754,7 +757,7 @@ def handle_action(self):
754757
else:
755758
return action_klass(self).execute()
756759

757-
except ValueError, err:
760+
except (ValueError, Reject), err:
758761
self.error_message.append(str(err))
759762

760763
def get_action_class(self, action_name):

0 commit comments

Comments
 (0)